
aux.posbernoulli.t(y, check.y = FALSE, rename = TRUE, name = "bei")
TRUE
then some basic checking is performed.rename = TRUE
then the behavioural effects indicator
are named using the value of name
as the prefix.
If FALSE
then use the same column names as y
.[object Object],[object Object],[object Object],[object Object],[object Object]
posbernoulli.t
for details.posbernoulli.t
,
deermice
.# Fit a M_tbh model to the deermice data:
(pdata <- aux.posbernoulli.t(with(deermice, cbind(y1, y2, y3, y4, y5, y6))))
deermice <- data.frame(deermice,
bei = 0, # Add this
pdata$cap.hist1) # Incorporate these
head(deermice) # Augmented with behavioural effect indicator variables
tail(deermice)
Run the code above in your browser using DataLab