Publications by civilstat
PSA: R’s rnorm() and mvrnorm() use different spreads
17.06.2016
Quick public service announcement for my fellow R nerds: R has two commonly-used random-Normal generators: rnorm and MASS::mvrnorm. I was foolish and assumed that their parameterizations were equivalent when you’re generating univariate data. But nope: Base R can generate univariate draws with rnorm(n, mean, sd), which uses the standard deviat...
1221 sym