4
votes
simr Power analysis consistently yields low power
The problem with your simulation is that there is no meaningful 'effect'. You are simulating a standard normal distribution for your predictor and then a second normal distribution, centered on the ...
3
votes
Calculating minimum sample size required for repeated measures linear mixed model using the simr package
Some Background
Since you don't have a strong idea yet of what effects to expect, I recommend that you try to find articles that cover this to a degree. There is a lot of reaction time studies out ...
3
votes
Accepted
Omitted variable bias: 3 correlated variables and 1 omitted (R simulation)
Your calculations are incorrect because in a regression with more than two explanatory variables the omitted-variable bias (OVB) for x3 is not a function of ...
1
vote
How to simulate n Uniform[0,1] variables with a specified correlation?
Inspired by @whuber 's approach, I created my own approximation that I hope might be useful to future readers. The essential insight is that the function $f^{-1}(\rho)$ (which allows one to determine ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
simulation × 1882r × 533
monte-carlo × 223
distributions × 150
probability × 134
regression × 119
bayesian × 110
time-series × 105
random-generation × 101
sampling × 96
correlation × 78
normal-distribution × 73
markov-chain-montecarlo × 72
statistical-power × 67
bootstrap × 64
self-study × 59
logistic × 58
survival × 55
hypothesis-testing × 54
mixed-model × 53
random-variable × 53
estimation × 46
stochastic-processes × 45
mathematical-statistics × 44
copula × 43