Learn R Programming

secr (version 1.3.0)

D.designdata: Construct Density Design Data

Description

Internal function used by secr.fit, confint.secr, and score.test.

Usage

D.designdata (mask, Dmodel, grps, sessionlevels, sessioncov = NULL)

Arguments

mask
mask object.
Dmodel
formula for density model
grps
vector of group names
sessionlevels
vector of character values for session names
sessioncov
optional dataframe of values of session-specific covariate(s).

Value

  • Dataframe with one row for each combination of mask point, group and session. The dataframe has an attribute 'dimD' that gives the relevant dimensions: attr(dframe, 'dimD') = c(nmask, ngrp, R), where nmask is the number of mask points, ngrp is the number of groups, and R is the number of sessions. Columns correspond to predictor variables in Dmodel.

Details

This is an internal secr function that you are unlikely ever to use. Unlike secr.design.MS, this function does not call model.matrix.

See Also

secr.design.MS