a3.lm: A3 for Linear Regressions

Description Usage Arguments Value Examples

Description

This convenience function calculates the A3 results specifically for linear regressions. It uses R's glm function and so supports logistic regressions and other link functions using the family argument. For other forms of models you may use the more general a3 function.

Usage

1

Arguments

formula

the regression formula.

data

a data frame containing the data to be used in the model fit.

family

the regression family. Typically 'gaussian' for linear regressions.

...

additional arguments passed to a3.base.

Value

S3 A3 object; see a3.base for details

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 ## Standard linear regression results:

 summary(lm(rating ~ ., attitude))

 ## A3 linear regression results:

 # In practice, p.acc should be <= 0.01 in order
 # to obtain fine grained p values.

 a3.lm(rating ~ ., attitude, p.acc = 0.1)

 # This is equivalent both to:

 a3(rating ~ ., attitude, glm, model.args = list(family = gaussian), p.acc = 0.1)

 # and also to:

 a3(rating ~ ., attitude, lm, p.acc = 0.1)
 

A3 documentation built on May 2, 2019, 9:36 a.m.

Related to a3.lm in A3...