Description Usage Arguments Value Examples
This function wraps train
to train a glm model with my prefered settings and a
x_chr interface instead of a formula interface
1 2 3 4 5 6 | train_glm(train_df, target = "fx", predictors, id_col = "img")
trainGlm(train_df, target = "fx", predictor_set, id_col = "img")
trainTestGlm(cohort_df, target = "fx", predictor_set, grp_col = "pt",
img_id = "img")
|
train_df |
a radiograph-major data.frame with training examples. See |
target |
chr(1) names of target to train |
predictors |
x_chr names of predictor columns |
btlnck |
a caret S3 train object
1 2 3 | train_glm(hipsCohort() %>% unnest(pre), target = "fx", predictors = str_c("PC", 1:10))
trainGlm(hipsCohort(), predictor_set="image")
trainTestGlm(hipsCohort(), predictor_set = "image")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.