Articles by R | Science Loft

Useful YAML options for generating HTML reports in R

August 5, 2020 | R | Science Loft

I think most people start using R with scripts initially. Scripts are great for modular computational tasks, but for generating informative reports, Rmarkdown is a must. Rmd makes it possible to use a YAML header to specify certain parameters right at the beginning of the document. Built-in YAML parameters make ... [Read more...]

Understanding Lasso and Ridge Regression

June 15, 2020 | R | Science Loft

Backdrop Prepare toy data Simple linear modeling Ridge regression Lasso regression Problem of co-linearity Backdrop I recently started using machine learning algorithms (namely lasso and ridge regression) to identify the genes that correlate with different clinical outcomes in cancer. Coming purely from a biology background, I needed to brush up ...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)