Some of the table links weren't working I think this was one of two possible reasons.
The #| label: value shouldn't have _ (underscore) in them as Markdown treats such charactesr as special as they are used for marking text as italics.
In all the Quarto examples I have seen table labels all begin with tbl-.
I've corrected these and the tables are now correctly referenced and linked when rendered/previewed.
After tinkering with the recipe::() stages and removing some duplicated text to make it simpler we now...
Filter the variables of interest.
Remove individuals who are missing final_pathology
Setup a recipe() using the notation final_pathology ~ . where . means all other variables, which we selected in step 1.
Use recipes::step_filter_missing() to remove instances where recipes::all_predictors() are missing.
Use recipes::step_normalize() to normalise recipes::all_numeric_predictors().
Use recipes::step_dummy() to generate dummies for recipes::all_nominal_predictors(). This last step now includes all binary No/Yes variables too.
I'm still not yet convinced everything is running perfectly smoothly, things to check would be the number of observations in the df_complete and the train and test data frames.
I did try splitting out the code that builds the recipe to its own sections/recipe.qmd and including it in the same manner as the sections/lasso.qmd is, but encountered errors when trying to preview as there is an attempt made to render notebooks from these files and that was for some reason failing (and I've not been able to work out why today).
Some of the table links weren't working I think this was one of two possible reasons.
#| label:
value shouldn't have_
(underscore) in them as Markdown treats such charactesr as special as they are used for marking text as italics.tbl-
.I've corrected these and the tables are now correctly referenced and linked when rendered/previewed.
After tinkering with the
recipe::()
stages and removing some duplicated text to make it simpler we now...final_pathology
recipe()
using the notationfinal_pathology ~ .
where.
means all other variables, which we selected in step 1.recipes::step_filter_missing()
to remove instances whererecipes::all_predictors()
are missing.recipes::step_normalize()
to normaliserecipes::all_numeric_predictors()
.recipes::step_dummy()
to generate dummies forrecipes::all_nominal_predictors()
. This last step now includes all binaryNo
/Yes
variables too.I'm still not yet convinced everything is running perfectly smoothly, things to check would be the number of observations in the
df_complete
and thetrain
andtest
data frames.I did try splitting out the code that builds the recipe to its own
sections/recipe.qmd
and including it in the same manner as thesections/lasso.qmd
is, but encountered errors when trying to preview as there is an attempt made to render notebooks from these files and that was for some reason failing (and I've not been able to work out why today).