Description Usage Arguments Details Examples
Coerce a model to class regexport
1  as.regexport(model, ...)

model 
A regression model or output from a regression function that can be coerced to regexport format 
... 
Other arguments to be passed to methods 
The regexport package uses the classes regexcel
and reglist
to store all regression outputs needed to make the standard tables in a
convenient format that avoids all of the complexity of the standard
regression output classes (such as lm
or glm
). Coercing a
model to this class will eliminate much of the complexity of the original
model and simplifies the object down to what is needed to output the table.
The regexport package currently includes methods for models of class
lm
, glm
, coeftest
(for use with the lmtest package).
Output from other packages can easily be used with regexport by creating a
list with the required elements and using as.regexport
to coerce the
list into class regexport
.
The regexcel
class is a named list with at least three elements:
depvar
A character vector with one element: the name of the
dependent variable
coef
A data.frame with four columns:
var
A character vector with names of independent variables
est
A numeric vector with the mean estimates of the
coefficients
se
A numeric vector with the standard error of the
coefficients
p
A numeric vector with the probability that a coefficient
is not equal to zero (the pvalue of the ttest)
sumstats
A named list with summary statistics that can be
displayed when a regression is output
1 2  reg < lm(mpg ~ cyl + disp, data = mtcars)
regx < as.regexport(reg)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.