A simple plot takes a few lines of coding:g1 <- ggplot(d, aes(birth.year))g2 <- g1 + geom_line(aes(y=alive0, linetype="Famale")) + geom_line(aes(y=alive1, linetype="Male")) + scale_linetype_discrete(name = "")g3 <- g2 + geom_point(aes(y=...
Here are some useful extension to the "mtable" function in the memisc package.
Here are some useful extension to the "mtable" function in the memisc package.
I don't like R to create a local directory tree in my home directory because new packages will automatically be installed into that directory. The way to do this is to modify the "/usr/local/lib64/R/etc/Renviron" and mark the line "R_LIBS_USER=${R_LIBS...
I don't like R to create a local directory tree in my home directory because new packages will automatically be installed into that directory. The way to do this is to modify the "/usr/local/lib64/R/etc/Renviron" and mark the line "R_LIBS_USER=${R_LIBS...
Rstudio, an open source cross-platform IDE for R, seems to be really attractive. It probably will not drag me away from Emacs, but having more options is always a good thing.The only downside of it is that it automatically installs R from the...
Rstudio, an open source cross-platform IDE for R, seems to be really attractive. It probably will not drag me away from Emacs, but having more options is always a good thing.The only downside of it is that it automatically installs R from the...
I am trying to simulate second difference using Zelig, here is my code:--------------------------------------------------------data(turnout)# estimationz.out <- zelig(vote ~ race*age + educate + income, ...
I am trying to simulate second difference using Zelig, here is my code:--------------------------------------------------------data(turnout)# estimationz.out <- zelig(vote ~ race*age + educate + income, ...
Stata's new "margins" command is as powerful as "Zelig" package for R for the purpose of conducting post-estimation manipulation of the results (e.g. producing predicted probabilities, confidence intervals, etc.). While "margins" uses delta method, "Ze...