Learn R Programming

texreg (version 1.15)

extract: Extract coefficients and GOF measures from a statistical object

Description

Extract coefficients and GOF measures from a statistical object.

Usage

extract(model, ...)
extract.clm(model, include.thresholds=TRUE, include.aic=TRUE, include.bic=TRUE, 
    include.loglik=TRUE, include.nobs=TRUE)
extract.clogit(model, include.aic=TRUE, include.rsquared=FALSE, 
    include.maxrs=FALSE, include.events=TRUE, include.nobs=TRUE, 
    include.missings=TRUE)
extract.coxph(model, include.aic=TRUE, include.rsquared=FALSE, 
    include.maxrs=FALSE, include.events=TRUE, include.nobs=TRUE, 
    include.missings=TRUE)
extract.ergm(model, include.aic=TRUE, include.bic=TRUE, include.loglik=TRUE)
extract.gee(model, robust=TRUE, include.dispersion=TRUE, include.nobs=TRUE)
extract.glm(model, include.aic=TRUE, include.bic=TRUE, include.loglik=TRUE, 
    include.deviance=TRUE, include.nobs=TRUE)
extract.glmerMod(model, include.pvalues=FALSE, include.aic=TRUE, 
    include.bic=TRUE, include.loglik=TRUE, include.deviance=TRUE, 
    include.nobs=TRUE, include.groups=TRUE, include.variance=TRUE)
extract.gls(model, include.aic=TRUE, include.bic=TRUE, include.loglik=TRUE, 
    include.nobs=TRUE)
extract.lm(model, include.rsquared=TRUE, include.adjrs=TRUE, include.nobs=TRUE)
extract.lme(model, include.aic=TRUE, include.bic=TRUE, include.loglik=TRUE, 
    include.nobs=TRUE)
extract.lmerMod(model, include.pvalues=FALSE, include.aic=TRUE, 
    include.bic=TRUE, include.loglik=TRUE, include.deviance=TRUE, 
    include.nobs=TRUE, include.groups=TRUE, include.variance=TRUE)
extract.lmrob(model, include.nobs=TRUE)
extract.lnam(model, include.rsquared=TRUE, include.adjrs=TRUE, 
    include.aic=TRUE, include.bic=TRUE, include.loglik=TRUE)
extract.lrm(model, include.pseudors=TRUE, include.lr=TRUE, include.nobs=TRUE)
extract.mer(model, include.pvalues=FALSE, include.aic=TRUE, 
    include.bic=TRUE, include.loglik=TRUE, include.deviance=TRUE, 
    include.nobs=TRUE, include.groups=TRUE, include.variance=TRUE)
extract.negbin(model, include.aic=TRUE, include.bic=TRUE, include.loglik=TRUE, 
    include.deviance=TRUE, include.nobs=TRUE)
extract.nlmerMod(model, include.pvalues=FALSE, include.aic=TRUE, 
    include.bic=TRUE, include.loglik=TRUE, include.deviance=TRUE, 
    include.nobs=TRUE, include.groups=TRUE, include.variance=TRUE)
extract.plm(model, include.rsquared=TRUE, include.adjrs=TRUE, include.nobs=TRUE)
extract.pmg(model, include.nobs=TRUE)
extract.polr(model, include.thresholds=TRUE, include.aic=TRUE, include.bic=TRUE,
    include.loglik=TRUE, include.deviance=TRUE, include.nobs=TRUE)
extract.Relogit(model, include.aic=TRUE, include.bic=TRUE, include.loglik=TRUE, 
    include.deviance=TRUE, include.nobs=TRUE)
extract.rlm(model, include.nobs=TRUE)
extract.rq(model, include.nobs=TRUE, include.percentile=TRUE)
extract.sclm(model, include.thresholds=TRUE, include.aic=TRUE, include.bic=TRUE,
    include.loglik=TRUE, include.nobs=TRUE)
extract.simex(model, jackknife=TRUE, include.nobs=TRUE)
extract.stergm(model, beside=FALSE, include.formation=TRUE, 
    include.dissolution=TRUE, include.nvertices=TRUE, include.aic=FALSE, 
    include.bic=FALSE, include.loglik=FALSE)
extract.svyglm(model, include.aic=FALSE, include.bic=FALSE, include.loglik=FALSE,
    include.deviance=TRUE, include.dispersion=TRUE, include.nobs=TRUE)
extract.systemfit(model, include.rsquared=TRUE, include.adjrs=TRUE, 
    include.nobs=TRUE)
extract.tobit(model, include.aic=TRUE, include.bic=TRUE, include.loglik=TRUE, 
    include.deviance=TRUE, include.nobs=FALSE, include.censnobs=TRUE, 
    include.wald=TRUE)

Arguments

model
A statistical model object.
beside
If available: should the model terms be arranged below each other or beside each other (default)? For example, in a stergm model, the formation and dissolution coefficients can be arranged in two different ways.
include.adjrs
If available: should the adjusted R-squared be reported?
include.aic
If available: should Akaike's information criterion (AIC) be reported?
include.bic
If available: should the Bayesian information criterion (BIC) be reported?
include.censnobs
If available: should the total, right-censored, left-censored, and uncensored number of observations be reported?
include.deviance
If available: should the deviance be reported?
include.dispersion
If available: should the dispersion or scale parameter be reported?
include.dissolution
If available: should the coefficients for the dissolution phase in a STERGM be reported?
include.events
If available: should the number of events be reported (in survival models)?
include.formation
If available: should the coefficients for the formation phase in a STERGM be reported?
include.groups
If available: should the number of groups be reported?
include.loglik
If available: should the log-likelihood be reported?
include.lr
If available: should the likelihood ratio test be reported?
include.maxrs
If available: should the maximum possible R-squared be reported?
include.missings
If available: should the number of missing observations be reported (in survival models)?
include.nobs
If available: should the number of observations be reported?
include.nvertices
If available: should the number of vertices be reported in a statistical network model?
include.percentile
If available: should the percentile (tau) be reported?
include.pseudors
If available: should the pseudo R-squared be reported?
include.pvalues
If available: should the p-values be reported (not recommended for lme4 models)?
include.rsquared
If available: should R-squared be reported?
include.thresholds
If available: should the threshold parameters (that is, the intercepts for the class boundaries) be reported in ordinal models?
include.variance
If available: should group variances be reported?
include.wald
If available: should the Wald statistic be included?
jackknife
If available: use Jackknife variance instead of Asymptotic variance.
robust
If available: report robust instead of native standard errors.
...
Custom parameters.

Details

extract() is a generic function which extracts coefficients and GOF measures from statistical objects. There are several extract functions for the specific model types, which are called by the generic extract function if it encounters a model known to be handled by the specific function. The output is used by the texreg function.

The various extract functions can also be used directly on a statistical model to convert them into texreg objects.

See Also

texreg-package texreg extract-methods