# NOT RUN {
# generate the toy example
data <- gen_GEE_data(numClusters = 75, clusterSize = 5,
clusterCorstr = 'ar1', clusterRho = 0.3,
beta = c(1, -1.1, 1.5, -2, rep(0, 50)), family = gaussian(),
intercept = TRUE, xCorstr = 'ar1',
xCorRho = 0.5, xVariance = 0.2)
df <- data.frame(y = data$y, data$x)
clusterID <- data$clusterID
pool <- gen_GEE_data(numClusters = 8000, clusterSize = 5,
clusterCorstr = 'ar1', clusterRho = 0.3,
beta = c(1, -1.1, 1.5, -2, rep(0, 50)), family = gaussian(),
intercept = TRUE, xCorstr = 'ar1',
xCorRho = 0.5, xVariance = 0.2)
df_pool <- data.frame(y = pool$y, pool$x)
clusterID_pool <- pool$clusterID
d<- 0.25
# use seq_GEE_model to generalized estimating equations case.
# You can remove #' to run the command.
# seqRes.ASED <- seq_GEE_model(y ~ .-1, data = df, clusterID = clusterID,
# data_pool = df_pool, clusterID_pool = clusterID_pool,
# strategy = "D-optimal", d = d, family = gaussian(), corstr = 'ar1')
# }
Run the code above in your browser using DataLab