Description Usage Arguments Value
Data generation function for simulation and demonstration There are three settings.
1 2 3 4 5 6 7 | generate.data(
n,
true.theta = NULL,
sigma = 0.1,
setting = "setting1",
ncopy = 1
)
|
n |
sample size |
true.theta |
true single-index coefficients, default is c(1,1,1)/sqrt(3) for setting 1 and c(1,2)/sqrt(5) for other settings |
sigma |
the standard deviation of error term |
setting |
chose from three settings |
ncopy |
generates multiple copies of data for Monte Carlo simulations |
X predictors
Y response variables
single.index.values single index term
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.