- Install jags: in the terminal using homebrew
brew install jags
- Install rjags: in R
install.packages("rjags")
library(rjags)
\usepackage{stringstrings} % \capitalize, \caselower | |
\newcommand{\sentencecase}[1]{\caselower[e]{#1}\capitalize{\thestring}} |
brew install jags
install.packages("rjags")
library(rjags)
Jones, Simon. How to write a great research paper: Seven simple suggestions. Great talk, mostly focused on CS, but applicable in other disciplines. https://www.youtube.com/watch?v=g3dkRsTqdDA
Goodson, Patricia. "Becoming an Academic Writer 50 Exercises for Paced, Productive, and Powerful Writing". General (e.g. get in the habit of writing) and concrete (i.e. per section) exercises to become a better writer. Additional book resources (writing log, article template). http://www.sagepub.com/goodson/study/resources.htm
Silvia, Paul. "How to write a lot"
Strunk, William. Elements of Style. Ithaca, N.Y.: Priv. print. [Geneva, N.Y.: Press of W.P. Humphrey], 1918; Bartleby.com, 1999. www.bartleby.com/141/. [Date of Printout].
Package | Ordinal | Multinomial | Partial proportional odds | Scale Effects | Random Effects |
---|---|---|---|---|---|
nnet | no | multinom |
N/A | N/A | No |
MASS | polr |
No | No | No | No |
ordinal | clm /clm2 |
all X's in nominal (may not converge) |
offending X's in nominal |
via scale |
clmm /clmm2 |
VGAM | yes | ? | ? | ? | No |
MCMCglmm | yes | ? | ? | ? | ? |
Mixcat | yes | ? | ? | npmlt |
|
mlogit | ? | mlogit |
N/A | N/ |
These tricks require BibTool, which can be installed using homebrew
.
To extract only the used fields call bibtool -x
on a .aux
file, e.g.
bibtool -x doc.aux -o output.bib
To delete fields that you don't want to share, e.g. notes and file locations,
bibtool -- "delete.field {annote}" -i input.bib -o output.bib
I found this method http://www.r-bloggers.com/a-quick-way-to-do-row-repeat-and-col-repeat-rep-row-rep-col/
rep.row <- function(x, n){
matrix(rep(x, each = n), nrow = n)
}
And it seemed sensible if the matrices are stored by column major, however, it seems like filling by rows is quicker
Code based on: http://pages.stat.wisc.edu/~fyang/stat572/disc9.R
# checking that e_i all have the same variance:
gsame_var <- function(flmer){
gnutar
is no longer shipped with Mavericks, this may cause some issues, e.g. when running R
devtools
.Solution, based on this blogpost:
brew install gnu-tar
cd /usr/bin
sudo ln -s `brew --prefix gnu-tar`/libexec/gnubin/tar /usr/bin/gnutar
This is introduced in Ch. ? from Gelman and Hill (2007). The following presentation offers some insight on that (and in general a tutorial for mixed-effects models) Slides: http://madere.biol.mcgill.ca/cchivers/rstats/linear_mixed_effects/Multilevel%20Models%20in%20R.pdf Code, data, ...: https://sites.google.com/site/mcgillbgsa/workshops/mixed-effects