# Datasets "exampleNE0" and "exampleNE1" contain normal distributed longitudinal data.
# Datasets "exampleTE0" and "exampleTE1" contain t distributed longitudinal data.
# The fist variance components in the datasets "exampleNE0" and "exampleTE0" are zero.
# The fist variance components in the datasets "exampleNE1" and "exampleTE1" are
# nonzero at the 24, 25, 26, 27 time points.
# X is an N by p matrix with N being the number of all observations and p being
# the dimension of covariates.
# Y.all is an N by T matrix with T being the number of time points.
# Philist is an n list of design matrices of variance components with n being the
# number of subjects. Its $i$th element Philist[[i]] is an $n_i$ by $n_id$ matrix
# that combines design matrices of variance components by columns for the $i$th
# subject, where $n_i$ is the number of repeated measures for the $i$th subject
# and $d$ is the number of variance components.
# beta.all is a p by T matrix. Each column is the fixed effects at time t.
# thetastar is a d by T matrix. Each column is the variance components at time t.
data(exampleNE0)
re = multiELvar(X,Y.all,Philist,theta0=0)
Run the code above in your browser using DataLab