getFixedEffects: Extract fixed effects of a supported model

Description Usage Arguments See Also Examples

Description

A wrapper to extract fixed effects of a supported model

Usage

1
2
3
getFixedEffects(fittedModel)

getFixedEffects.MixMod(fittedModel)

Arguments

fittedModel

a fitted model

See Also

getObservedResponse, getSimulations, getRefit, getFitted

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
testData = createData(sampleSize = 400, family = gaussian())

fittedModel <- lm(observedResponse ~ Environment1 , data = testData)

# response that was used to fit the model
getObservedResponse(fittedModel)

# predictions of the model for these points
getFitted(fittedModel)

# extract simulations from the model as matrix
getSimulations(fittedModel, nsim = 2)

# extract simulations from the model for refit (often requires different structure)
x = getSimulations(fittedModel, nsim = 2, type = "refit")

getRefit(fittedModel, x[[1]])

getRefit(fittedModel, getObservedResponse(fittedModel))

DHARMa documentation built on Sept. 28, 2021, 5:10 p.m.