Learn R Programming

lllcrc (version 1.2)

string.to.array: Put LLM vector into a LLM design matrix

Description

Given the output of pop.to.counts, i.e., a 1-row dataframe with as many columns as there are observable capture patterns, create a design matrix for log-linear modeling

Usage

string.to.array(densi, rasch = FALSE)

Arguments

densi
The capture pattern counts
rasch
Logical: if TRUE, the square of the number of captures is included in the design matrix as the column ck2

Value

A design matrix