DGP.hwang: A collection of DGPs for different models from Hwang's...

Description Usage Arguments Value Author(s) References

View source: R/dgp__DGP.hwang.R

Description

Data generating processes. The model can be extended.

Usage

1
2
3
4
5
6
7
8
DGP.hwang(
  n,
  q,
  Sigma,
  model,
  otherArgs = list(seed = NA, nTesting = NA),
  PlotData
)

Arguments

n

"numeric". No. of obs. to be generated

q

NA

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.

Value

"list"

Author(s)

Feng Li, Department of Statistics, Stockholm University, Sweden.

References

Hwang 2000


feng-li/movingknots documentation built on March 30, 2021, 11:58 a.m.