This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set working directory | |
makePath <- function(path, macUser, winUser){ | |
if(Sys.info()['sysname']=="Windows"){ | |
retpath <- paste("C:/Users/", winUser, sep="") | |
} else { | |
retpath <- paste("/Users/", macUser, sep="") | |
} | |
return(paste(retpath, path, sep="")) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install devtools & obsval | |
install.packages("devtools") | |
library("devtools") | |
devtools::install_github("chrismeserole/obsval") | |
library("obsval") | |
# install secondary packages | |
install.packages("mvtnorm") | |
install.packages("nnet") | |
library(mvtnorm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## NOTE: This relies on Tim Kay's AWS script, so uncomment | |
## the following lines if it is not installed: | |
# curl https://raw.github.com/timkay/aws/master/aws -o aws | |
# export EC2_ACCESS_KEY=<AWS_ACCESS_KEY> | |
# export EC2_SECRET_KEY=<AWS_SECRET_KEY> | |
# chmod +x aws | |
# perl aws --install |