Description Usage Arguments Value Examples
Inputs a linear model from the lm
function and set of indices and
multipliers for a set of coefficients. Return the estimate, CI and p-value.
In other words, from the STATA docs, computes point estimates... p-values,
and confidence intervals for linear combinations of coefficients.
NOTE: For the indices in par
, beta0 = 1, beta1 = 2, and so on.
1 |
par |
A vector specifying the indices of coefficients |
mults |
A vector of multipliers |
model |
An lm object |
alpha |
The alpha level for the CIs and p-values |
A vector containing the estimate, CI, and p-value
1 2 3 4 | # Testing beta1 + 7.5*beta3
# lincom(par = c(2,4),
# mults = c(1,7.5),
# model=my_linear_model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.