Learn R Programming

spaMM (version 1.3.0)

extractors: Functions to extract various components of a fit

Description

fitted extracts fitted values (see fitted.values). fixef extracts the fixed effects coefficients, $\beta$. ranef extracts the predicted random effects, $u$. predictionCoeffs precomputes coefficients for prediction (see predict for an example)

Usage

## S3 method for class 'HLfit':
fitted(object,...)
## S3 method for class 'HLfit':
fixef(object,...)
## S3 method for class 'HLfit':
ranef(object,...)
predictionCoeffs(object)

Arguments

object
The return object of an HLfit or similar function.
...
Other arguments that may be needed by some method.

Value

  • predictionCoeffs returns a numeric vector.

Examples

Run this code
## see 'predict' for a example with predictionCoeffs

Run the code above in your browser using DataLab