This function creates a user-specified number of simulated regression datasets, and compares mixed-effects regression with random regression, by-subject regression, by-item regression, and by-subject plus by-item regression. Optionally, an effect of learning or fatigue can be incorporated.
simulateRegression.fnc(beta = c(400, 2, 6, 4), nitem = 20, nsubj = 10,
stdevItem = 40, stdevSubj = 80, stdevError = 50, nruns = 100, learn = FALSE,
learnRate = 10, ...)
A list with components
proportion of runs in which predictors are significant at the 05 significance level.
proportion of runs in which predictors are significant at the 01 significance level.
mean estimated random effects.
As this may take some time, the index of each completed run is shown on the output device.
A numeric vector with beta weights for the intercept and three numeric predictors.
A number specifying the number of items.
A number specifying the number of subjects.
A number specifying the standard deviation of the Item random effect.
A number specifying the standard deviation of the Subject random effect.
A number specifying the standard deviation of the Residual Error.
A number specifying the required number of simulated datasets.
A logical that if TRUE, allows an effect of learning or fatigue into the model.
A number specifying the learning rate (if negative) or the effect of fatigue (if positive).
other parameters to be passed through to plotting functions.
R. H. Baayen
See Also make.reg.fnc
.