Description Usage Arguments Details Value
is_discrete checks if the specified covariates could be regarded as discrete
variables.
1  | is_discrete(X, X_reg)
 | 
X | 
 A data frame of covariates  | 
X_reg | 
 The vector of covariates that will stratify the analyses. These variables have to be categorical.  | 
Note that this function should be used with caution. It used
nrow(X)/nrow(unique(X[,X_reg,drop=FALSE]))>10
 as an ad hoc criterion.
It is not the same as is.discrete
TRUE for discrete; FALSE otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.