Title: | IPW and Mean Score Methods for Time-Course Missing Data |
---|---|
Description: | Contains functions for data analysis of Repeated measurement using GEE. Data may contain missing value in response and covariates. For parameter estimation through Fisher Scoring algorithm, Mean Score and Inverse Probability Weighted method combining with Multiple Imputation are used when there is missing value in covariates/response. Reference for mean score method, inverse probability weighted method is Wang et al(2007)<doi:10.1093/biostatistics/kxl024>. |
Authors: | Atanu Bhattacharjee [aut, cre, ctb], Bhrigu Kumar Rajbongshi [aut, ctb], Gajendra K Vishwakarma [aut, ctb] |
Maintainer: | Atanu Bhattacharjee <[email protected]> |
License: | GPL-3 |
Version: | 0.1.1 |
Built: | 2025-01-27 03:56:02 UTC |
Source: | https://github.com/cran/MIIPW |
provides augmented inverse probability weighted estimates of parameters for GEE model of response variable using different covariance structure
AIPW( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 50, m = 2, pMat, method = NULL )
AIPW( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 50, m = 2, pMat, method = NULL )
data |
longitudinal data set where each subject's outcome has been measured at same time points and number of visits for each patient is similar. Covariance structure of the outcome variable like "unstructured","independent","AR-1" ,"exchangeable" |
formula |
formula for the response model |
id |
column name of id of subjects in the dataset |
visit |
column name of timepoints of visit in the dataset |
family |
name of the distribution for the response variable, For more information on how to use |
init.beta |
initial values for the regression coefficient of GEE model |
init.alpha |
initial values for the correlation structure |
init.phi |
initial values for the csale parameter for |
tol |
tolerance in calculation of coefficients |
weights |
A vector of weights for each observation. If an observation has weight 0, it is excluded from the calculations of any parameters. Observations with a NA anywhere (even in variables not included in the model) will be assigned a weight of 0. Weights are updated as the mentioned the details. |
corstr |
a character string specifying the correlation structure. It could "independence", "exchangeable", "AR-1", "unstructured" |
maxit |
maximum number iteration for newton-raphson |
m |
number of imputation used to update the missing score function value due incomplete data. |
pMat |
predictor matrix as obtained in |
method |
method option for mice model,for information see mice |
AIPW
It uses the inverse probability weighted method to reduce the bias
due to missing values in GEE model for longitudinal data. The response variable is related to the coariates as
, where
g
is the link function for the glm. The estimating equation is
where if there is missing value in covariates and 0 otherwise,
is fully observed all subjects and
is partially missing,
where
. The missing score function values due to incomplete data are estimated
using an imputation model through mice which we have considered as
.
A list of objects containing the following objects
details about arguments passed in the function
estimated regression coeffictient value for the response model
number of iteration required
list of beta values at different iteration
estimated weights for the observations
mu values according glm
etsimated phi value for the glm
model
estimated hessian matrix obtained from the last iteration
sandwich estimator value for the variance covariance matrix of the beta
Atanu Bhattacharjee, Bhrigu Kumar Rajbongshi and Gajendra Kumar Vishwakarma
Wang, C. Y., Shen-Ming Lee, and Edward C. Chao. "Numerical equivalence of imputing scores and weighted estimators in regression analysis with missing covariates." Biostatistics 8.2 (2007): 468-473.
Seaman, Shaun R., and Stijn Vansteelandt. "Introduction to double robust methods for incomplete data." Statistical science: a review journal of the Institute of Mathematical Statistics 33.2 (2018): 184.
Vansteelandt, Stijn, James Carpenter, and Michael G. Kenward. "Analysis of incomplete data using inverse probability weighting and doubly robust estimators." Methodology: European Journal of Research Methods for the Behavioral and Social Sciences 6.1 (2010): 37.
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-AIPW(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'exchangeable',maxit=50,m=3,pMat=pMat) ## ## End(Not run)
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-AIPW(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'exchangeable',maxit=50,m=3,pMat=pMat) ## ## End(Not run)
provides mean score estimates of parameters for GEE model of response variable using different covariance structure
MeanScore( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 50, m = 2, pMat, method = NULL )
MeanScore( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 50, m = 2, pMat, method = NULL )
data |
longitudinal data set where each subject's outcome has been measured at same time points and number of visits for each patient is similar. Covariance structure of the outcome variable like "unstructured","independent" ,"AR-1","exchnageable" |
formula |
formula for the response model |
id |
column name of id of subjects in the dataset |
visit |
column name of timepoints of visit in the dataset |
family |
name of the distribution for the response variable, For more information on how to use |
init.beta |
initial values for the regression coefficient of GEE model |
init.alpha |
initial values for the correlation structure |
init.phi |
initial values for the scale parameter |
tol |
tolerance in calculation of coefficients |
weights |
A vector of weights for each observation. If an observation has weight 0, it is excluded from the calculations of any parameters. Observations with a NA anywhere (even in variables not included in the model) will be assigned a weight of 0. Weights are updated as the mentioned the details. |
corstr |
a character string specifying the correlation structure. It could "independence", "exchangeable", "AR-1", "unstructured" |
maxit |
maximum number iteration for newton-raphson |
m |
number of imputation used to update the missing score function value due incomplete data. |
pMat |
predictor matrix as obtained in |
method |
method option for mice model,for information see mice |
meanScore
It uses the mean score method to reduce the bias
due to missing covariate in GEE model.The response variable is related to the coariates as
, where
g
is the link function for the glm. The estimating equation is
where if there is missing value in covariates and 0 otherwise,
is fully observed all subjects and
is partially missing,
where
. The missing score function values due to incomplete data are estimated
using an imputation model through mice which we have considered as
. The estimated value
is obtained
through multiple imputation.
A list of objects containing the following objects
details about arguments passed in the function
estimated regression coeffictient value for the response model
number of iteration required
list of beta values at different iteration
estimated weights for the observations
mu values according glm
etsimated phi value for the glm
model
estimated hessian matrix obtained from the last iteration
sandwich estimator value for the variance covariance matrix of the beta
Atanu Bhattacharjee, Bhrigu Kumar Rajbongshi and Gajendra Kumar Vishwakarma
Wang, C. Y., Shen-Ming Lee, and Edward C. Chao. "Numerical equivalence of imputing scores and weighted estimators in regression analysis with missing covariates." Biostatistics 8.2 (2007): 468-473.
Seaman, Shaun R., and Stijn Vansteelandt. "Introduction to double robust methods for incomplete data." Statistical science: a review journal of the Institute of Mathematical Statistics 33.2 (2018): 184.
Vansteelandt, Stijn, James Carpenter, and Michael G. Kenward. "Analysis of incomplete data using inverse probability weighting and doubly robust estimators." Methodology: European Journal of Research Methods for the Behavioral and Social Sciences 6.1 (2010): 37.
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-MeanScore(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'exchangeable',maxit=50,m=2,pMat=pMat) ## ## End(Not run)
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-MeanScore(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'exchangeable',maxit=50,m=2,pMat=pMat) ## ## End(Not run)
provides augmented inverse probability weighted estimates of parameters for GEE model of response variable using different covariance structure. The augmented terms are estimated by using multiple imputation model.
miAIPW( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 50, m = 2, pMat, method = NULL )
miAIPW( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 50, m = 2, pMat, method = NULL )
data |
longitudinal data set where each subject's outcome has been measured at same time points and number of visits for each patient is similar. Covariance structure of the outcome variable like "unstuctured","independent","AR1" ,"Exchageable" |
formula |
formula for the response model |
id |
column name of id of subjects in the dataset |
visit |
column name of timepoints of visit in the dataset |
family |
name of the distribution for the response variable, For more information on how to use |
init.beta |
initial values for the regression coefficient of GEE model |
init.alpha |
initial values for the correlation structure |
init.phi |
initial values for the csale parameter for |
tol |
tolerance in calculation of coefficients |
weights |
A vector of weights for each observation. If an observation has weight 0, it is excluded from the calculations of any parameters. Observations with a NA anywhere (even in variables not included in the model) will be assigned a weight of 0. Weights are updated as the mentioned the details. |
corstr |
a character string specifying the correlation structure. It could "independent", "exchangeable", "AR-1", "unstructured" |
maxit |
maximum number iteration for newton-raphson |
m |
number of imputation used to update the missing score function value due incomplete data. |
pMat |
predictor matrix as obtained in |
method |
method option for mice model,for information see mice |
miAIPW
It uses the augmented inverse probability weighted method to reduce the bias
due to missing values in GEE model for longitudinal data. The response variable is related to the coariates as
, where
g
is the link function for the glm. The estimating equation is
where if there is missing value in covariates and 0 otherwise,
is fully observed all subjects and
is partially missing,
where
. The missing score function values due to incomplete data are estimated
using an imputation model through mice which we have considered as
. The estimated value
is obtained
through multiple imputation.
A list of objects containing the following objects
details about arguments passed in the function
estimated regression coeffictient value for the response model
number of iteration required
list of beta values at different iteration
estimated weights for the observations
mu values according glm
etsimated phi value for the glm
model
estimated hessian matrix obtained from the last iteration
sandwich estimator value for the variance covariance matrix of the beta
Atanu Bhattacharjee, Bhrigu Kumar Rajbongshi and Gajendra Kumar Vishwakarma
Wang, C. Y., Shen-Ming Lee, and Edward C. Chao. "Numerical equivalence of imputing scores and weighted estimators in regression analysis with missing covariates." Biostatistics 8.2 (2007): 468-473.
Seaman, Shaun R., and Stijn Vansteelandt. "Introduction to double robust methods for incomplete data." Statistical science: a review journal of the Institute of Mathematical Statistics 33.2 (2018): 184.
Vansteelandt, Stijn, James Carpenter, and Michael G. Kenward. "Analysis of incomplete data using inverse probability weighting and doubly robust estimators." Methodology: European Journal of Research Methods for the Behavioral and Social Sciences 6.1 (2010): 37.
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-miAIPW(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'exchangeable',maxit=4,m=2,pMat=pMat) ## ## End(Not run)
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-miAIPW(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'exchangeable',maxit=4,m=2,pMat=pMat) ## ## End(Not run)
provides simple inverse probability weighted estimates of parameters for GEE model of response variable using different covariance structure, missing values in covariates are multiply imputed for those subjects whose response is observed.
miSIPW( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 50, m = 2, pMat, method = NULL )
miSIPW( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 50, m = 2, pMat, method = NULL )
data |
longitudinal data set where each subject's outcome has been measured at same time points and number of visits for each patient is similar. Covariance structure of the outcome variable like "unstuctured","independent","AR-1" ,"exchageable" |
formula |
formula for the response model |
id |
column name of id of subjects in the dataset |
visit |
column name of timepoints of visit in the dataset |
family |
name of the distribution for the response variable, For more information on how to use |
init.beta |
initial values for the regression coefficient of GEE model |
init.alpha |
initial values for the correlation structure |
init.phi |
initial values for the scale parameter |
tol |
tolerance in calculation of coefficients |
weights |
A vector of weights for each observation. If an observation has weight 0, it is excluded from the calculations of any parameters. Observations with a NA anywhere (even in variables not included in the model) will be assigned a weight of 0. Weights are updated as the mentioned the details. |
corstr |
a character string specifying the correlation structure. It could "independence", "exchangeable", "AR-1", "unstructured" |
maxit |
maximum number iteration for newton-raphson |
m |
number of imputation used to update the missing score function value due incomplete data. |
pMat |
pMat predictor matrix as obtained in |
method |
method option for mice model,for information see mice |
miSIPW
It uses the simple inverse probability weighted method to reduce the bias
due to missing values in GEE model for longitudinal data. The response variable is related to the coariates as
, where
g
is the link function for the glm. The estimating equation is
=0
where if there is missing no value in covariates and 0 otherwise.
is fully observed all subjects and
is partially missing.
A list of objects containing the following objects
details about arguments passed in the function
estimated regression coeffictient value for the response model
number of iteration required
list of beta values at different iteration
estimated weights for the observations
mu values according glm
etsimated phi value for the glm
model
estimated hessian matrix obtained from the last iteration
sandwich estimator value for the variance covariance matrix of the beta
Atanu Bhattacharjee, Bhrigu Kumar Rajbongshi and Gajendra Kumar Vishwakarma
Wang, C. Y., Shen-Ming Lee, and Edward C. Chao. "Numerical equivalence of imputing scores and weighted estimators in regression analysis with missing covariates." Biostatistics 8.2 (2007): 468-473.
Seaman, Shaun R., and Stijn Vansteelandt. "Introduction to double robust methods for incomplete data." Statistical science: a review journal of the Institute of Mathematical Statistics 33.2 (2018): 184.
Vansteelandt, Stijn, James Carpenter, and Michael G. Kenward. "Analysis of incomplete data using inverse probability weighting and doubly robust estimators." Methodology: European Journal of Research Methods for the Behavioral and Social Sciences 6.1 (2010): 37.
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-miSIPW(data=srdata1, formula=formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=0.001,weights = NULL, corstr = 'exchangeable',maxit=50,m=2,pMat=pMat) ## ## End(Not run)
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-miSIPW(data=srdata1, formula=formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=0.001,weights = NULL, corstr = 'exchangeable',maxit=50,m=2,pMat=pMat) ## ## End(Not run)
print method for ipw
print_ipw(x, ...)
print_ipw(x, ...)
x |
ipw object |
... |
further argument can be passed |
print result for ipw object
print method for meanscore
print_meanscore(x, ...)
print_meanscore(x, ...)
x |
meanscore object |
... |
further argument can be passed |
print result for meanscore object
It provides model selection criteria such as quasi-likelihood under the independence model criterion (QIC), an approximation to QIC under large sample i.e QICu and quasi likelihood
QICmiipw(model.R, model.indep, family)
QICmiipw(model.R, model.indep, family)
model.R |
fitted object obtained from GEE model |
model.indep |
same fitted object as in |
family |
currently we have inlcuded "poisson","binomial","gaussian" |
QICmiipw
returns a list containing QIC,QICu,Quasi likelihood
Pan, Wei. "Akaike's information criterion in generalized estimating equations." Biometrics 57.1 (2001): 120-125.
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-MeanScore(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'exchangeable',maxit=50,m=2,pMat=pMat) m11<-MeanScore(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'independent',maxit=50,m=2,pMat=pMat) QICmiipw(model.R=m1,model.indep=m11,family="gaussian") ## ## End(Not run)
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM pMat<-mice::make.predictorMatrix(srdata1[names(srdata1)%in%all.vars(formula)]) m1<-MeanScore(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'exchangeable',maxit=50,m=2,pMat=pMat) m11<-MeanScore(data=srdata1, formula<-formula,id='ID', visit='Visit',family='gaussian',init.beta = NULL, init.alpha=NULL,init.phi=1,tol=.00001,weights = NULL, corstr = 'independent',maxit=50,m=2,pMat=pMat) QICmiipw(model.R=m1,model.indep=m11,family="gaussian") ## ## End(Not run)
provides simple inverse probability weighted estimates of parameters for GEE model of response variable using different covariance structure
SIPW( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 10, maxvisit = NULL )
SIPW( data, formula, id, visit, family, init.beta = NULL, init.alpha = NULL, init.phi = NULL, tol = 0.001, weights = NULL, corstr = "independent", maxit = 10, maxvisit = NULL )
data |
longitudinal data set where each subject's outcome has been measured at same time points and number of visits for each patient is similar. Covariance structure of the outcome variable like "unstructured","independent" ,"exchangeable" |
formula |
formula for the response model |
id |
column name of id of subjects in the dataset |
visit |
column name of timepoints of visit in the dataset |
family |
name of the distribution for the response variable, For more information on how to use |
init.beta |
initial values for the regression coefficient of GEE model |
init.alpha |
initial values for the correlation structure |
init.phi |
initial values for the scale parameter |
tol |
tolerance in calculation of coefficients |
weights |
A vector of weights for each observation. If an observation has weight 0, it is excluded from the calculations of any parameters. Observations with a NA anywhere (even in variables not included in the model) will be assigned a weight of 0. Weights are updated as the mentioned the details. |
corstr |
a character string specifying the correlation structure. It could "independence", "exchangeable", "AR-1", "unstructured" |
maxit |
maximum number of iteration |
maxvisit |
maximum number of visit |
SIPW
It uses the simple inverse probability weighted method to reduce the bias
due to missing values in GEE model for longitudinal data.The response variable is related to the coariates as
, where
g
is the link function for the glm. The estimating equation is
=0
where if there is missing no value in covariates and 0 otherwise.
is fully observed all subjects and
is partially missing.
A list of objects containing the following objects
details about arguments passed in the function
estimated regression coeffictient value for the response model
number of iteration required
list of beta values at different iteration
estimated weights for the observations
mu values according glm
etsimated phi value for the glm
model
estimated hessian matrix obtained from the last iteration
sandwich estimator value for the variance covariance matrix of the beta
Atanu Bhattacharjee, Bhrigu Kumar Rajbongshi and Gajendra Kumar Vishwakarma
Wang, C. Y., Shen-Ming Lee, and Edward C. Chao. "Numerical equivalence of imputing scores and weighted estimators in regression analysis with missing covariates." Biostatistics 8.2 (2007): 468-473.
Seaman, Shaun R., and Stijn Vansteelandt. "Introduction to double robust methods for incomplete data." Statistical science: a review journal of the Institute of Mathematical Statistics 33.2 (2018): 184.
Vansteelandt, Stijn, James Carpenter, and Michael G. Kenward. "Analysis of incomplete data using inverse probability weighting and doubly robust estimators." Methodology: European Journal of Research Methods for the Behavioral and Social Sciences 6.1 (2010): 37.
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM m1<-SIPW(data=srdata1,formula<-formula,id='ID', visit='Visit',family='gaussian',corstr = 'exchangeable',maxit=5) ## ## End(Not run)
## Not run: ## formula<-C6kine~ActivinRIB+ActivinRIIA+ActivinRIIAB+Adiponectin+AgRP+ALCAM m1<-SIPW(data=srdata1,formula<-formula,id='ID', visit='Visit',family='gaussian',corstr = 'exchangeable',maxit=5) ## ## End(Not run)
Repeated measurement dataset, for each id we have four visit observations
data(srdata1)
data(srdata1)
A dataframe with 164 rows and 9 columns
ID of subjects
Number of times observations recorded
These are covariates
data(srdata1)
data(srdata1)
summary method for ipw
summary_ipw(object, ...)
summary_ipw(object, ...)
object |
ipw object |
... |
further argument can be passed |
summary of ipw object
summary method for meanscore
summary_meanscore(object, ...)
summary_meanscore(object, ...)
object |
meanscore object |
... |
further argument can be passed |
summary of meanscore object
internal function for updating alpha
updateALpha(y, x, vfun, mu, w, phi, corstr, ni, mv = NULL, id, visit)
updateALpha(y, x, vfun, mu, w, phi, corstr, ni, mv = NULL, id, visit)
y |
response value for GEE model |
x |
model matrix for the GEE model |
vfun |
variance function for the GLM |
mu |
mu vector for the GLM |
w |
weight matrix |
phi |
scale parameter |
corstr |
correlation structure |
ni |
list of visits per subject |
mv |
NULL |
id |
id column |
visit |
visit column |
arguments are from Fisher Scoring Algorithm
internal function for updating beta through Fisher Scoring
updateBeta(y, x, vfun, mu, w, D, Ralpha, beta)
updateBeta(y, x, vfun, mu, w, D, Ralpha, beta)
y |
response value for GEE model |
x |
model matrix for the GEE model |
vfun |
variance function for the GLM |
mu |
mu vector for the GLM |
w |
weight matrix |
D |
derivation of the inverse link function |
Ralpha |
correlation matrix |
beta |
vector of beta value for GEE model |
internal function for updating scale parameter
UpdatePhi(y, x, vfun, mu, w)
UpdatePhi(y, x, vfun, mu, w)
y |
response value for GEE model |
x |
model matrix for the GEE model |
vfun |
variance function for the GLM |
mu |
mu vector for the GLM |
w |
weight matrix |
internal function for sandwich estimator
updateSandW(y, x, vfun, mu, w, D, Ralpha, beta, hessmat, blockdiag)
updateSandW(y, x, vfun, mu, w, D, Ralpha, beta, hessmat, blockdiag)
y |
response value for GEE model |
x |
model matrix for the GEE model |
vfun |
variance function for the GLM |
mu |
mu vector for the GLM |
w |
weight matrix |
D |
derivation of the inverse link function |
Ralpha |
correlation matrix |
beta |
vector of beta value for GEE model |
hessmat |
hessian matrix |
blockdiag |
vector containing the dim of block matrix for block diagonal matrix |
arguments are required for obtaining Sandwich Estimator for variance matrix of regression coefficient of GEE model