getFix: Get Information on Fixed Effects From a Model Object

Description Usage Arguments Details Value Methods (by class) Author(s) See Also Examples

Description

getFix extracts coefficients, their covariance matrix, and degrees of freedom from a model object. Its main purpose is to extract information needed by the wald function. To extend the wald function to a new class of model 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
getFix(fit, ...)

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

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

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

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

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

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

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

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

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

## S3 method for class 'stanfit'
getFix(fit, pars, include = TRUE, ...)

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

Arguments

fit

A fitted model object

pars

For the stanfit method; see extract.

include

For the stanfit method; see extract.

...

Other arguments [unused]

Details

Extending the wald function to a new class of objects only requires a getFix method for the new class.

Value

Returns a list with the following components:

Methods (by class)

Author(s)

Georges Monette

See Also

wald

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
mod.prestige <- lm(prestige ~ education + income, data=Prestige)
getFix(mod.prestige)

## Not run: 
# Example of a getFix method for a glm object:

print(carEx:::getFix.glm)

# Example of a getFix method for a mipo object in the mice package:

print(carEx:::getFix.mipo)

## End(Not run)

carEx documentation built on June 28, 2019, 3:01 p.m.