rm_lvls: Drop unused factor levels

View source: R/utils.R

rm_lvlsR Documentation

Drop unused factor levels

Description

Function to drop empty factor levels in test data (source).

Usage

rm_lvls(fit, test_data)

Arguments

fit

Model fit of class "glm".

test_data

Data frame containing the test data.


henckr/maidrr documentation built on July 27, 2023, 3:17 p.m.