model.matrix.dfunc function

model.matrix - Rdistance model matrix

model.matrix - Rdistance model matrix

Extract the model matrix ("X" matrix) from an Rdistance model object.

## S3 method for class 'dfunc' model.matrix(object, ...)

Arguments

  • object: An Rdistance model frame or fitted distance function, normally produced by a call to dfuncEstim.
  • ...: Ignored

Returns

A matrix containing covariates for fitting an Rdistance model.

Examples

data(sparrowDf) sparrowModel <- parseModel( sparrowDf, dist ~ observer ) model.matrix(sparrowModel)
  • Maintainer: Trent McDonald
  • License: GNU General Public License
  • Last published: 2025-04-10