model.matrix.dfunc {Rdistance}R Documentation

model.matrix - Rdistance model matrix

Description

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

Usage

## 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

Value

A matrix containing covariates for fitting an Rdistance model.

Examples


data(sparrowDf)
sparrowModel <- parseModel( sparrowDf, dist ~ observer )
model.matrix(sparrowModel)


[Package Rdistance version 4.0.5 Index]