Given a main model, an outcome nuisance model and an exposure nuisance model drgeeData extracts the model variables and matrices from a data.frame or an environment object. It also performs some data cleaning and error checking.
gee performs estimation of parameters in a restricted mean model using standard GEEs with independent working correlation matrix. For clustered data, cluster-robust standard errors are calculated. When cond=TRUE, cluster-specific intercepts are assumed.
The main function is drgee, which estimates a parameter beta in a model defined as g{E(Y|A,L)}-g{E(Y|A=0,L)}=beta^T (A * X(L))}. By supplying (nuisance) models for g{E(Y|A=0,L) and E(A|L), a consistent estimate of beta is obtained when at least one of these models is correctly specified.
drgee performs O-estimation, E-estimation or DR-estimation given symbolic representations of an outcome nuisance model and an exposure nuisance model. For clustered data the nuisance models may have cluster-specific intercepts.