I hereby claim:
- I am shabbychef on github.
- I am shabbychef (https://keybase.io/shabbychef) on keybase.
- I have a public key whose fingerprint is 69BF 8752 A716 023A 02D4 2C42 6F6D BA6E 505E FB13
To claim this, I am signing this object:
# Pyro4 nameserver MWE | |
# This appears to be properly configured. | |
# preamble | |
FROM orchardup/python:2.7 | |
MAINTAINER Steven E. Pav, shabbychef@gmail.com | |
USER root | |
# setup | |
RUN pip install -qq Pyro4 |
I hereby claim:
To claim this, I am signing this object:
library(git2r) | |
library(devtools) | |
library(drat) | |
install_github2 <- function(repo) { | |
dest <- tempfile() | |
dir.create(dest, recursive=TRUE) | |
# download | |
repo <- git2r::clone(paste0('https://github.com/',repo,'.git'),dest) |
# * Sat May 19 2012 21:04:56 Steven E. Pav <shabbychef@gmail.com> | |
# from https://github.com/milktrader/rfinance2012/blob/94e6dd0452b16697ad10f9bc7e0e7431c95d9020/xts/.Rhistory | |
require(quantmod) | |
getSymbols('^GSPC', from='1950-01-01') | |
G <- monthlyReturn(Cl(GSPC)) | |
G$monnum <- .indexmon(G) | |
# try ANOVA on the monthly returns |
# to get the R<->python magic | |
%load_ext rmagic | |
# now you can code in R: | |
%%R | |
library(survival) | |
amod <- coxph(Surv(lung$time,lung$status) ~ lung$sex + lung$ph.karno) | |
print(summary(amod)) | |
# done |