View source: R/dthelper-reporting.R View source: R/dthelper-functions.R
extract.lm | R Documentation |
gets summary() of lm object and returns specified statistics from coefficient table
extract.lm( lm.model, var = c("Estimate", "Std. Error", "t value", "Pr(>|t|)"), include.intercept = TRUE )
lm.model |
lm object |
var |
Variable. Set to "Estimate", "Std. Error", "t value", or "Pr(>|t|)" |
include.intercept |
If set to FALSE, ignores estimates from intercept |
A vector
lm.model <- lm(y ~ x) extract.lm(lm.model, var = "Estimate") extract.lm(lm.model, var = "Std. Error") extract.lm(lm.model, var = "Pr(>|t|)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.