powered by
Generate data set for measurement error bias correction methods for scalar-on-function regression in package MECfda
MECfda_simDataGen_ME( N = 100, J_W = 7, forwhich = c("MEM", "IV", "CLS", "IV.SIMEX"), t_interval = c(0, 1), n_t = 24, seed = 0 )
return a list that possibly contains following elements.
An atomic vector of response variable
A dataframe with a binary and a continuous scalar-valued covariate.
Observed values of function-valued covariate.
Instrumental vairable.
Same as in the input argument.
Sequence of the measurement (time) points.
Sample size.
Number of repeated measurement (period), if applicable.
For which method of measurement error bias correction method the data set is generated. There are two options: 'MEM','IV','CLS','IV.SIMEX'.
A 2-element vector, represents an interval, means the domain of the functional covariate. Default is c(0,1), represent interval \([0,1]\).
c(0,1)
Number of measurement time points.
Pseudo-random number generation seed.
for (i in 1:4) {MECfda_simDataGen_ME(forwhich = c('MEM','IV','CLS','IV.SIMEX')[i])}
Run the code above in your browser using DataLab