lincom | R Documentation |
This function calculates the point estimate and standard error for a linear
combination of regression coefficients (similar to Stata's "lincom"
function). At this stage the combination must be specified as a numeric
vector (or matrix) of weights – future updates will extend this to allow
more flexible methods of specifying coefficient combinations (similar to
car
's linearHypothesis
function).
lincom(model, weights, vcov. = NULL)
model |
A regression model with |
weights |
A numeric vector of coefficient weights to construct the
combination, or a matrix in which each row represents one such
combination. Each element specifies the weight applied to the
corresponding element of |
vcov. |
(Optional) Either a function for estimating the covariance
matrix of the regression coefficients, or the covariance matrix itself.
If not specified, the default |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.