Generates simulated errors-in-variables regression data
generate.eive.data(n, e.sd, delta.sd, seed = 12345, useotherx = FALSE)
A matrix of variables.
Number of observations
Standard deviation of error term of regression
Standard deviation of error in exploratory variable
Seed for random number generator. 12345 by default
Logical. If TRUE, an additional independent variable is added.
xdelta
Errorenous X variable
otherx
Other X variable
y
Response variable