datagenerator.inloop | R Documentation |
This function is used to generate B data batches each time to illustrate the usage of RenewGLM.inloop
function
datagenerator_in(beta, n, p, B, family, construct, rho, tempdatadir,
categorical = FALSE, seed = NA)
beta |
designed coefficients for simulated data batches, including the intercept |
n |
sample size of the bth data batch |
p |
number of coefficients to estimate including intercept |
B |
the terminal time to get the result |
family |
exponential family of the responses, choices include |
construct |
structure of covariance matrix for generating the covariate matrix |
rho |
the correlation coefficient in the covariance matrix, choices inlcude |
tempdatadir |
the directory for saving a total of B data batches |
categorical |
set to TRUE to let some |
seed |
set random seed and the default is |
a data matrix containing response vector y
and covariate matrix X
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.