Calculate subject-level quantities when the regression outcome is subject to missingness and follows generalized least sqaures models (GLS)
fun.glssubi(yi, xi, maxT = maxT, b, D, ycorr, transform = FALSE,
gfiti = NULL, Afiti = NULL, case = 1)
vector of the response for the ith subject
matrix of the covariates for the ith subject
maximum number of visits
the mean parameter vector beta
the vector of unique parameters in the variance-covariance matrix for the error term in the GLS model for Y
the form of within-subject correlation structure in the GLS model for Y
logical indicating wether or not the parameter in D is transformed.
vector of predicted probabilities of being observed for all the observations from the ith subject
matrix of 3 columns of predicted transitional probabilities for the missing observations from the ith subject.
1: calculated nabla11_i; 2: calculate nabla12_i