ee.glm | R Documentation |
A specified estimating equation for ELCIC under GLM. This estimating equation is used for marginal mean selection.
ee.glm(x, y, beta, dist)
x |
A matrix containing covariates. The first column should be all ones corresponding to the intercept. See more details in |
y |
A vector containing outcomes. |
beta |
A plug-in estimator solved by an external estimating procedure. |
dist |
A specified distribution. It can be "gaussian", "poisson",and "binomial". |
A matrix containing values of calculated estimating equations.
"x" and "y" should be all observed.
## tests # load data data(glmsimdata) x<-glmsimdata$x y<-glmsimdata$y # obtain the estimates. Note that x matrix already contains intercept. fit<-glm(y~x-1,family="poisson") beta<-fit$coefficients ee.matrix<-ee.glm(x, y, beta, dist="poisson") apply(ee.matrix,1,mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.