Data generation function for simulation and demonstration There are three settings.
generate.data(
n,
true.theta = NULL,
sigma = 0.1,
setting = "setting1",
ncopy = 1
)sample size
true single-index coefficients, default is c(1,1,1)/sqrt(3) for setting 1 and c(1,2)/sqrt(5) for other settings
the standard deviation of error term
chose from three settings
generates multiple copies of data for Monte Carlo simulations
X predictors
Y response variables
single.index.values single index term