D.designdata {secr} | R Documentation

## Construct Density Design Data

### Description

Internal function used by `secr.fit` 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).

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

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

### Author(s)

Murray Efford murray.efford@otago.ac.nz

### See Also

`secr.design.MS`

[Package secr version 1.2.11 Index]