lincom {biostat3} | R Documentation |
Using results calculated by the linearHypothesis
function in
the car
package, calculate a linear combination of regression parameters.
lincom(model, specification, level = 0.95, eform = FALSE, ...)
model |
regression model object (as per the |
specification |
specification of the linear combination. This is the same as a
single component of the |
level |
the confidence level required |
eform |
logical for whether to exponentiate the confidence interval (default=FALSE) |
... |
other arguments to the |
Multiple specifications of linear combinations are called individually.
A matrix with columns including the estimate, a normal-based confidence interval, test statistic and p-values.
See Also linearHypothesis
.
fit <- glm(chd ~ hieng*job + offset(log(y)), data=diet, family=poisson)
lincom(fit, c("hienghigh+hienghigh:jobconductor",
"hienghigh+hienghigh:jobbank"),
eform=TRUE)