Description Usage Arguments Value Examples
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.
1 |
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 |
S3 A3
object; see a3.base
for details
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.