makedata | R Documentation |
This function generates data following a linear model where covariates follow an auto regressive model.
makedata(n, p, beta, xsig, errsig, powx, powy, k, a = rep(0.5, k))
n |
sample size |
p |
number of covariates |
beta |
regression coefficients |
xsig |
standard deviation of x variables |
errsig |
residual standard deviation |
powx |
power for x variable transformation |
powy |
power of y variable transformation |
k |
the length of dependence in the auto-regression |
a |
autoregressive coefficients of length k |
x covariates. y outcome variable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.