Create a factor variable and include unobserved levels for compatibility with model prediction functions
a vector to be converted to a factor
a vector of factor levels to be assigned to x
a factor variable with all observed levels of x and all levels of x in fullLev
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.