Description Usage Arguments Value Examples
View source: R/hmi_smallfunctions.R
Function checks of which type a variable is. The types are listed below (together with a rough summary of the classification mechanism).
continuous (numeric values, or integers with more than 20 different values),
semicontinuous (numeric values with more than 10% of them share the same value),
rounded continuous (if more than 50% of the observations of a continuous variable are divisible by some rounding degrees)
count data (integers).
an intercept (the same value for all observations),
binary (two different values - like 0s and 1s or "m" and "f"),
categorical (the variable is a factor or has more than 3 different values)
ordered categorical (the categorical variable is ordered.)
1 |
variable |
A variable (vector) from your data set. |
spike |
A numeric value, denoting the presumed spike of semi-continuous variables. |
rounding_degrees |
A numeric vector with the presumed rounding degrees.
If the rounding_degrees are set to be |
A character denoting the type of variable
.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.