combinePreds: Combine predictors

View source: R/model_utility_functions.R

combinePredsR Documentation

Combine predictors

Description

Create a table of combinations of factor levels for the the predictors in a searcher efficiency or carcass persistence analysis. This is a utility function called by pkm0 and cpm0.

Usage

combinePreds(preds, data)

Arguments

preds

Vector of character strings with the names of predictor variables included in the model.

data

Searcher efficiency or carcass persistence data frame with columns for each predictor and rows corresponding to carcasses in the field trials.

Value

Data frame with columns for each predictor in preds and rows for each factor level combination among the predictors. In addition there is a column with CellNames, which are the combinations of predictor levels separated by periods ( . ).


ddalthorp/GenEst documentation built on June 4, 2023, 1 a.m.