Learn R Programming

isni (version 0.1)

fun.glssubi: Internal Function for various subject-level computation required for ISNIGLS.

Description

Calculate subject-level quantities when the regression outcome is subject to missingness and follows generalized least sqaures models (GLS)

Usage

fun.glssubi(yi, xi, maxT = maxT, b, D, ycorr, transform = FALSE,
  gfiti = NULL, Afiti = NULL, case = 1)

Arguments

yi

vector of the response for the ith subject

xi

matrix of the covariates for the ith subject

maxT

maximum number of visits

b

the mean parameter vector beta

D

the vector of unique parameters in the variance-covariance matrix for the error term in the GLS model for Y

ycorr

the form of within-subject correlation structure in the GLS model for Y

transform

logical indicating wether or not the parameter in D is transformed.

gfiti

vector of predicted probabilities of being observed for all the observations from the ith subject

Afiti

matrix of 3 columns of predicted transitional probabilities for the missing observations from the ith subject.

case

1: calculated nabla11_i; 2: calculate nabla12_i