Learn R Programming

supernova (version 2.1.1)

estimate_extraction: Extract Estimates/Statistics From a Model

Description

This collection of functions is useful for extracting estimates and statistics from a fitted model. They are particularly useful when estimating many models, like when bootstrapping confidence intervals. Each function can be used with an already fitted model as an lm object, or a formula and associated data can be passed to it.

Usage

b0(object, data = NULL, ...)

b1(object, data = NULL, ...)

fVal(object, data = NULL, ...)

PRE(object, data = NULL, ...)

SSE(object, data = NULL, ...)

SSM(object, data = NULL, ...)

SSR(object, data = NULL, ...)

Arguments

object

A lm object, or formula.

data

If object is a formula, the data to fit the formula to as a data.frame.

...

Passthrough arguments to lm.

Value

The value of the estimate as a single number.

Details

b0

The intercept from the full model.

b1

The slope b1 from the full model.

fVal

The F value from the full model.

PRE

The Proportional Reduction in Error for the full model.

SSE

The SS Error (SS Residual) from the model.

SSM

The SS Model (SS Regression) for the full model.

SSR

Alias for SSM.