Learn R Programming

quasar (version 0.1.0)

assert_binary_categorical_X: Assert that X is numeric or (if categorical) has at most two levels

Description

Works with rq/rqs even when model.frame or mod$x are not stored.

Usage

assert_binary_categorical_X(mod, X)

Arguments

mod

An "rq"/"rqs" object

X

Character scalar: name of the covariate of interest