datagenerator.outloop: This function is used to generate one data batch each time to...

datagenerator.outloopR Documentation

This function is used to generate one data batch each time to illustrate the usage of RenewGLM function

Description

This function is used to generate one data batch each time to illustrate the usage of RenewGLM.outloop function

Usage

datagenerator_out(beta, b, n, family, construct, rho, categorical = FALSE,
  seed = NA)

Arguments

beta

designed coefficients for simulated data batches, including the intercept

b

index for the current data batch

n

sample size of the bth data batch

family

exponential family of the reponses, including c("gaussian","binomial","poisson")

construct

structure of covariance matrix for generating the covariate matrix X

rho

the correlation coefficient in the covariance matrix, choices inlcude c("ind", "cs", "ar1")

categorical

set to TRUE to let some X be dichotomized, the default is FALSE

seed

set random seed and the default is NA

Value

a data matrix containing response vector y and covariate matrix X


luolsph/RenewGLM_pkg documentation built on April 17, 2023, 12:36 a.m.