lincomr | R Documentation |
Pretty simple and strighforward right now. My friend Mike Lasarev had a big hand in helping me get this set up and figuring out how to do it.
It should handle results from linear regression, mixed models, logistic regression, and survival analysis. The big drawback currently is that p-values and test statistics are based on asymptotic theory; in the future it would be a better idea to incorporate t-statistics or Satterthwaite degrees of freedom.
lincomr(k, fit, alpha = 0.05)
k |
A vector of 1's and 0's to indicate the linear combination |
fit |
A model fit object |
alpha |
Significance level |
A data frame of results
data(iris)
mod_1 <- lm(Petal.Width ~ Sepal.Length + Sepal.Width + Petal.Length,
data = iris)
summary(mod_1)
lincomr(k = c(1, 0, 1, 1), fit = mod_1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.