Description Usage Arguments Details Value
Take data frame and turn it into matrix for logistic regression
1 | covariate_df_to_mat(mc_trees, cov_names)
|
mc_trees |
data frame with cov_names |
cov_names |
null or string of vector |
if cov_names is NA
, then we return a matrix of 1 column of 1s. This is the case of having beta_0 only. Otherwise, we return the matrix with 1 column of 1s for the intercept and the rest of the variables.
matrix of dimension n x (p+1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.