Package JGEE. November 18, 2015

Similar documents
Package gee. June 29, 2015

Package pnmtrem. February 20, Index 9

Package misclassglm. September 3, 2016

Package glmmml. R topics documented: March 25, Encoding UTF-8 Version Date Title Generalized Linear Models with Clustering

Package clusterpower

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

Package LGRF. September 13, 2015

Package oaxaca. January 3, Index 11

Multiple Imputation for Missing Data. Benjamin Cooper, MPH Public Health Data & Training Center Institute for Public Health

Package bayeslongitudinal

Package addhaz. September 26, 2018

Package assortnet. January 18, 2016

Package cwm. R topics documented: February 19, 2015

Package DSBayes. February 19, 2015

Package samplingdatacrt

Package structree. R topics documented: August 1, 2017

Package RAMP. May 25, 2017

Package flexcwm. May 20, 2018

Package cosinor. February 19, 2015

Package mason. July 5, 2018

Package mcemglm. November 29, 2015

Package endogenous. October 29, 2016

The glmmml Package. August 20, 2006

Package rereg. May 30, 2018

Package GLMMRR. August 9, 2016

Package glinternet. June 15, 2018

Package CBCgrps. R topics documented: July 27, 2018

Package GWAF. March 12, 2015

Package acebayes. R topics documented: November 21, Type Package

Generalized least squares (GLS) estimates of the level-2 coefficients,

Package bayesdp. July 10, 2018

Package tpr. R topics documented: February 20, Type Package. Title Temporal Process Regression. Version

Package swcrtdesign. February 12, 2018

Regression. Dr. G. Bharadwaja Kumar VIT Chennai

Package OLScurve. August 29, 2016

Package glm2. August 11, 2018

Package desirability

Package glmnetutils. August 1, 2017

Package optimus. March 24, 2017

Package texteffect. November 27, 2017

Package mlvar. August 26, 2018

Package sparsereg. R topics documented: March 10, Type Package

Package mreg. February 20, 2015

Package bigreg. July 25, 2016

Package hiernet. March 18, 2018

Package gibbs.met. February 19, 2015

Coding Categorical Variables in Regression: Indicator or Dummy Variables. Professor George S. Easton

An Introduction to Growth Curve Analysis using Structural Equation Modeling

Package mvprobit. November 2, 2015

Package modmarg. R topics documented:

Package anesrake. April 28, 2018

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm

Package gamm4. July 25, Index 10

Package StVAR. February 11, 2017

Basic facts about Dudley

Package nsprcomp. August 29, 2016

Package DPBBM. September 29, 2016

Package MOST. November 9, 2017

Package SmoothHazard

Module 15: Multilevel Modelling of Repeated Measures Data. MLwiN Practical 1

Package clustvarsel. April 9, 2018

Package gpr. February 20, 2015

Package distdichor. R topics documented: September 24, Type Package

Package quickreg. R topics documented:

Package ridge. R topics documented: February 15, Title Ridge Regression with automatic selection of the penalty parameter. Version 2.

Package clusternomics

Package oglmx. R topics documented: May 5, Type Package

Package biglars. February 19, 2015

Package ICsurv. February 19, 2015

Package samplesizelogisticcasecontrol

APPENDIX A: INSTRUMENTS

Package survivalmpl. December 11, 2017

Package GlobalDeviance

Package GLDreg. February 28, 2017

Package sprinter. February 20, 2015

Numbers of Unemployed Jordanians ( )

Package truncreg. R topics documented: August 3, 2016

The biglm Package. August 25, bigglm... 1 biglm Index 5. Bounded memory linear regression

Package binomlogit. February 19, 2015

Predict Outcomes and Reveal Relationships in Categorical Data

Package MatchIt. April 18, 2017

Package FMsmsnReg. March 30, 2016

Statistics (STAT) Statistics (STAT) 1. Prerequisites: grade in C- or higher in STAT 1200 or STAT 1300 or STAT 1400

Package PTE. October 10, 2017

Package CALIBERrfimpute

Package gwrr. February 20, 2015

Package longclust. March 18, 2018

STATISTICS (STAT) Statistics (STAT) 1

Correctly Compute Complex Samples Statistics

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file

JMP Book Descriptions

STATISTICS (STAT) 200 Level Courses. 300 Level Courses. Statistics (STAT) 1

Package polywog. April 20, 2018

Package deming. June 19, 2018

Package FWDselect. December 19, 2015

Package ssa. July 24, 2016

Package subplex. April 5, 2018

Package lga. R topics documented: February 20, 2015

Time Series Analysis by State Space Methods

Package ellipse. January 6, 2018

Transcription:

Type Package Package JGEE November 18, 2015 Title Joint Generalized Estimating Equation Solver Version 1.1 Date 2015-11-17 Author Gul Inan Maintainer Gul Inan <inanx002@umn.edu> Fits two different joint generalized estimating equation models to multivariate longitudinal data. License GPL (>= 2) Depends gee, MASS NeedsCompilation no Repository CRAN Date/Publication 2015-11-18 09:31:03 R topics documented: JGEE-package........................................ 1 JGee1............................................ 2 JGee2............................................ 5 MSCMsub.......................................... 7 Index 9 JGEE-package Joint Generalized Estimating Equation Solver 1

2 JGee1 This package considers analysis of multivariate longitudinal data via two different joint generalized estimating equation (JGEE) models. While the first JGEE model assumes regression coefficients shared by responses, the second JGEE model assumes response-specific regression coefficients. Since the later model uses response-specific regression coefficients, this model is more flexible compared to the former model. As a result of this, the later model can be used to analyse the multivariate longitudinal data with mixed outcomes as well. On the other hand, the working correlation matrix in both JGEE models is decomposed as within-subject correlation and multivariate response correlation matrices through Kronecker product. a large menu for modelling these two correlation matrices are offered. Details This package consists of two different functions. JGee1 function fits a joint generalized estimating equation model to multivariate longitudinal data where the regression coefficients are shared by the different response types. JGee2 function fits a joint generalized estimating equation model to multivariate longitudinal data where the regression coefficients are response-specific. Author(s) Gul Inan Maintainer: Gul Inan JGee1 Function to fit a joint generalized estimating equation model with shared regression coefficients This function fits a joint generalized estimating equation model to multivariate longitudinal data with mono-type responses where the regression coefficients are shared by the different response types. Usage JGee1(formula, id, data, nr, na.action = NULL, family = gaussian(link = "identity"), corstr1 = "independence", Mv = NULL, corstr2 = "independence", beta_int = NULL, R1 = NULL, R2 = NULL, scale.fix = FALSE, scale.value = 1, maxiter = 25, tol = 10^-3, silent = FALSE)

JGee1 3 Arguments formula id data nr na.action family corstr1 Mv corstr2 beta_int R1 R2 scale.fix scale.value maxiter tol silent A formula expression in the form of response~predictors. A vector for identifying subjects. A data frame which stores the variables in formula with id variable. Number of multiple responses. A function to remove missing values from the data. Only na.omit is allowed here. A family object: a list of functions and expressions for defining link and variance functions. Families supported in JGee1 are binomial, gaussian, gamma and poisson. The links, which are not available in gee, is not available here. The default family is gaussian. A character string, which specifies the type of within-subject correlation structure. Structures supported in JGee1 are "AR-1","exchangeable", "fixed", "independence","stat_m_dep","non_stat_m_dep", and "unstructured". The default corstr1 type is "independence". If either "stat_m_dep", or "non_stat_m_dep" is specified in corstr1, then this assigns a numeric value for Mv. Otherwise, the default value is NULL. A character string, which specifies the type of multivariate response correlation structure. Structures supported in JGee1 are "exchangeable", "independence", and "unstructured". The default corstr2 type is "independence". User specified initial values for regression parameters. The default value is NULL. If corstr1="fixed" and corstr2="fixed" are specified, then R1 is a square matrix of dimension maximum cluster size containing the user specified correlation. Otherwise, the default value is NULL. If corstr1="fixed" and corstr2="fixed" are specified, then R2 is a square matrix of dimension nr size containing the user specified correlation. Otherwise, the default value is NULL. A logical variable; if true, the scale parameter is fixed at the value of scale.value. The default value is FALSE. If scale.fix=true, this assignes a numeric value to which the scale parameter should be fixed. The number of iterations that is used in the estimation algorithm. The default value is 25. The tolerance level that is used in the estimation algorithm. The default value is 10^-3. A logical variable; if true, the regression parameter estimates at each iteration are printed. The default value is FALSE. Value An object class of JGee1 representing the fit.

4 JGee1 Note The structures "non_stat_m_dep" and "unstructured" are valid only when the data is balanced. See Also JGee2 Examples ## Not run: data(mscmsub) mydata=mscmsub #MSCM stduy data layout requires some arrangement for model fitting. N=167 nt=4 nr=2 yvec=matrix(0,n*nt*nr,1) xmat=matrix(0,n*nt*nr,8) for(i in 1:N) { for(j in 1:nt){ yvec[j+(i-1)*nr*nt]=mydata[j+(i-1)*nt,2] yvec[j+(i-1)*nr*nt+nt]=mydata[j+(i-1)*nt,3] for(i in 1:N) { for(j in 1:nt){ for(k in 4:11){ xmat[j+(i-1)*nr*nt,(k-3)]=mydata[j+(i-1)*nt,k] xmat[j+(i-1)*nr*nt+nt,(k-3)]=mydata[j+(i-1)*nt,k] id=rep(1:n, each=(nt*nr)) mydatanew=data.frame(id,yvec,xmat) head(mydatanew) colnames(mydatanew)=c("id","resp","chlth","csex","education","employed", "housize","married","mhlth","race") head(mydatanew) formulaj1=resp~chlth+csex+education+employed+housize+married+ mhlth+race fitjgee1=jgee1(formula=formulaj1,id=mydatanew[,1],data=mydatanew, nr=2, na.action=null, family=binomial(link="logit"), corstr1="exchangeable", Mv=NULL, corstr2="independence", beta_int=null, R1=NULL, R2=NULL, scale.fix= FALSE, scale.value=1, maxiter=25, tol=10^-3,

JGee2 5 silent=false) summary(fitjgee1) names(summary(fitjgee1)) summary(fitjgee1)$working.correlation1 ## End(Not run) JGee2 Function to fit a joint generalized estimating equation model with response-specific regression coefficients This function fits a joint generalized estimating equation model to multivariate longitudinal data with mono-type or mixed responses where the regression coefficients are response-specific. Usage JGee2(formula, id, data, nr, na.action = NULL, family = list(gaussian(link = "identity"), gaussian(link = "identity")), corstr1 = "independence", Mv = NULL, corstr2 = "independence", beta_int = NULL, R1 = NULL, R2 = NULL, scale.fix = FALSE, scale.value = 1, maxiter = 25, tol = 10^-3, silent = FALSE) Arguments formula id data nr na.action family corstr1 Mv A formula expression in the form of cbind(res1,...,resnr)~predictors. A vector for identifying subjects. A data frame which stores the variables in formula with id variable. Number of multiple responses. A function to remove missing values from the data. Only na.omit is allowed here. A family object: a list of functions and expressions for defining link and variance functions. Families supported in JGee2 are binomial, gaussian, gamma and poisson. The links, which are not available in gee, is not available here. The default family is gaussian. A character string, which specifies the type of within-subject correlation structure. Structures supported in JGee2 are "AR-1","exchangeable", "fixed", "independence","stat_m_dep","non_stat_m_dep", and "unstructured". The default corstr1 type is "independence". If either "stat_m_dep", or "non_stat_m_dep" is specified in corstr1, then this assigns a numeric value for Mv. Otherwise, the default value is NULL.

6 JGee2 corstr2 beta_int R1 R2 scale.fix scale.value maxiter tol silent A character string, which specifies the type of multivariate response correlation structure. Structures supported in JGee2 are "exchangeable", "independence", and "unstructured". The default corstr2 type is "independence". User specified initial values for regression parameters. The default value is NULL. If corstr1="fixed" and corstr2="fixed" are specified, then R1 is a square matrix of dimension maximum cluster size containing the user specified correlation. Otherwise, the default value is NULL. If corstr1="fixed" and corstr2="fixed" are specified, then R2 is a square matrix of dimension nr size containing the user specified correlation. Otherwise, the default value is NULL. A logical variable; if true, the scale parameter is fixed at the value of scale.value. The default value is FALSE. If scale.fix=true, this assignes a numeric value to which the scale parameter should be fixed. The number of iterations that is used in the estimation algorithm. The default value is 25. The tolerance level that is used in the estimation algorithm. The default value is 10^-3. A logical variable; if true, the regression parameter estimates at each iteration are printed. The default value is FALSE. Value Note See Also An object class of JGee2 representing the fit. The structures "non_stat_m_dep" and "unstructured" are valid only when the data is balanced. JGee1 Examples ## Not run: #check the data data(mscmsub) #rename it mydata=mscmsub #check the column labels for formula object head(mydata) #prepare formula object before model fitting formulaj2=cbind(stress,illness)~chlth+csex+education+employed+housize+married+mhlth+race

MSCMsub 7 #prepare family object before model fitting familyj2=list(binomial(link="logit"),binomial(link="logit")) #fit the model fitjgee2=jgee2(formula=formulaj2,id=mydata[,1],data=mydata,nr=2,na.action=null, family=familyj2, corstr1="exchangeable", Mv=NULL, corstr2="unstructured", beta_int=rep(0,18), R1=NULL, R2=NULL, scale.fix=false, scale.value=1, maxiter=30, tol=10^-3, silent=false) #check the object names returned by fitjgee2 names(fitjgee2) #check the object names returned by summary(fitjgee2) names(summary(fitjgee2)) #get the coefficients summary(fitjgee2)$coefficients #get the within-subject correlation matrix summary(fitjgee2)$working.correlation1 #get the multivariate response correlation matrix summary(fitjgee2)$working.correlation2 #get the overall working correlation matrix summary(fitjgee2)$working.correlation ## End(Not run) MSCMsub Mother s Stress and Children s Morbidity (MSCM) study data In Mother s Stress and Children s Morbidity (MSCM) study, Alexander and Markowitz (1986) investigated the relationship between maternal employment and paediatric health care utilization due to considerable changes in social and demographic characteristics in the US since 1950. A total of 167 mothers and their preschool children (ages of between 18 months and 5 years) were enrolled in the MSCM study. At the beginning of the study, mothers were asked to provide demographic and domestic information about them such as education level, employment and marriage status, children s gender and race, maternal and child s health status at baseline and the household size, which are all categorical and time-invariant variables. Afterwards, the mothers were asked to record their maternal stress and child s illness status, whether present or not, in a health diary over a 28-day follow-up period. Information on these variables along with two binary responses, namely, mother s stress status and child s illness status for the days from 25 to 28 are presented here.

8 MSCMsub Usage Format Source data("mscmsub") A data frame with 668 observations on the following 11 variables. id A vector for classifying subjects. stress Mother s stress status at day t: 0=absence, 1=presence. illness Child s illness status at day t: 0=absence, 1=presence. chlth Child s health status at baseline: 0=very poor/poor, 1=fair, 2=good, 3=very good. csex Child s gender: 0=male, 1=female. education Mother s education level: 0=high school or less, 1=high school graduate. employed Mother s employment status: 0=unemployed, 1=employed. housize Size of the household: 0=2-3 people, 1=more than 3 people. married Marriage status of the mother: 0=other, 1=married. mhlth Mother s health status at baseline: 0=very poor/poor, 1=fair, 2=good, 3=very good. race Child s race: 0=white, 1=non-white. http://faculty.washington.edu/heagerty/books/analysislongitudinal/datasets.html References Alexander, C.S. and Markowitz, R. (1986). Maternal employment and use of pediatric clinic services. Medical Care, 24(2), 13 22.

Index Topic bivariate longitudinal binary data MSCMsub, 7 Topic joint modelling JGee1, 2 JGee2, 5 Topic kronecker product correlation matrix Topic marginal models JGee1, 2 JGee2, 5 Topic mixed outcomes JGee2, 5 JGEE (JGEE-package), 1 JGee1, 2, 2, 6 JGee2, 2, 4, 5 MSCMsub, 7 mycor_jgee1 (JGee1), 2 mycor_jgee2 (JGee2), 5 print.jgee1 (JGee1), 2 print.jgee2 (JGee2), 5 print.summary.jgee1 (JGee1), 2 print.summary.jgee2 (JGee2), 5 S_H1 (JGee1), 2 S_H2 (JGee2), 5 summary.jgee1 (JGee1), 2 summary.jgee2 (JGee2), 5 9