DGP | R Documentation |
A collection of DGPs for different models from Hwang's example.
DGP.hwang(
n,
q,
Sigma,
model,
otherArgs = list(seed = NA, nTesting = NA),
PlotData
)
n |
"numeric". No. of obs. to be generated |
Sigma |
"matrix". The variance covariance matrix. |
model |
"character". The model name to be use. When the model is "spline", you also need to supply paramters, see otherArgs. |
otherArgs |
"list". Other arguemnts need to pass to the function. otherArgs$seed: Set the seed. If this vaule is unset, use a random seed. otherArgs$xi: otherArgs$withOnt: otherArgs$spline.type: |
PlotData |
"logical" If need to plot the data out. |
The model can be extended.
"list"
First version: Tue Mar 30 20:11:06 CEST 2010; Current: Tue Jul 31 13:05:02 CEST 2012. DEPENDS: mvtnorm
Feng Li, Department of Statistics, Stockholm University, Sweden.
Hwang 2000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.