Description Usage Arguments Value References See Also Examples
View source: R/carx_simulate.R
Use the provided parameters in the supplied carx
model and other settings to
simulate data from the carx
model; see Wang and Chan (2017).
1 2 3 |
nObs |
number of observations to be simulated. |
prmtrAR |
the AR parameter. |
prmtrX |
the regression parameters for X. |
sigma |
the innovation standard deviation for the AR process. |
lcl |
the lower censoring limit. |
ucl |
the upper censoring limit. |
x |
optional matrix for X. Default = |
seed |
optional to set the seed of random number generator used by |
inno.dist |
innovation distribution, can be "normal" or "t", default="normal". If it is "t",
its degree of freedom should be supplied in |
t.df |
the degree of freedom of the t distribution, used only if |
intercept |
the intercept in the regression. Default=0. |
a data frame of simulated y
, x
, ci
, lcl
and ucl
.
Wang C, Chan KS (2017). "Quasi-likelihood estimation of a censored autoregressive model with exogenous variables." Journal of the American Statistical Association. 2017 Mar 20(just-accepted). with exogenous variables." Submitted.
carx
for model specification.
1 | dat = carxSim()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.