checkfactorlevelcounts | R Documentation |
Factor level response check
This function checks that there are some non-zero counts in each level of each factor variable for consideration in a model
checkfactorlevelcounts(factorlist, data, response)
factorlist |
Vector of factor variables specified in |
data |
Data frame containing columns of covariates listed in |
response |
A vector of response values |
# load data
data(ns.data.re)
checkfactorlevelcounts(factorlist=c('floodebb', 'impact'), ns.data.re,
ns.data.re$birds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.