geeUni | R Documentation |
Extract the coefficients of univariate gee using geeglm function (geepack package).
geeUni(y, x, data, id.vec, family, cor.type = "exchangeable")
y |
Dependant variable |
x |
Independent variable |
data |
Data |
id.vec |
Vector of id (should be ordered) |
family |
Family: "gaussian", "binomial", "poisson", "quasipoisson", etc... |
cor.type |
Correlation structure, Default: 'exchangeable' |
DETAILS
coefficient, standard error, p-value
library(geepack)
data(dietox)
dietox$Cu <- as.factor(dietox$Cu)
gee.uni <- geeUni("Weight", "Time",
data = dietox, id.vec = dietox$Pig,
family = "gaussian", cor.type = "exchangeable"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.