getFix: Get information on fixed effects from a model object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/wald.R

Description

getFix extracts coefficients, covariance matrix and degrees of freedom from model objects. Its main purpose is to extract information need by the wald function. To extend the wald function to a new class of objects, it is merely necessary to write a method for getFix.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
getFix(fit, ...)

## Default S3 method:
getFix(fit, ...)

## S3 method for class 'glm'
getFix(fit, ...)

## S3 method for class 'glmer'
getFix(fit, ...)

## S3 method for class 'lm'
getFix(fit, ...)

## S3 method for class 'lme'
getFix(fit, ...)

## S3 method for class 'lmer'
getFix(fit, ...)

## S3 method for class 'mer'
getFix(fit, ...)

## S3 method for class 'rdc'
getFix(fit, ...)

## S3 method for class 'rdc.lm'
getFix(fit, ...)

## S3 method for class 'rdc.lmer'
getFix(fit, ...)

## S3 method for class 'pool'
getFix(fit, ...)

## S3 method for class 'multinom'
getFix(fit, ...)

Arguments

fit

A fitted model object

...

Other arguments [unused]

Value

Returns a list with the following components:

fixed

Fixed effect parameter estimates

vcov

Covariance matrix of the parameters

df

denominator degrees of freedom for each effect

Author(s)

Georges Monette

See Also

wald

Examples

1
2
3
4
5
6
fit <- lme( mathach ~ (ses + I(ses^2)) * Sex, hs, random = ~ 1 + ses| school)
getFix(fit)

data(Prestige, package="car")
mod.prestige <- lm(prestige ~ education + income, data=Prestige)
getFix(mod.prestige)

gmonette/spida documentation built on May 17, 2019, 7:25 a.m.