knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This homework is due by the end of the day on September 18th 2020.
bis557
.linear_model()
function and document it. It should
take a formula, a data frame and a list of constasts for factor
variables as input.lm_patho
as a data set to the package. Use
the lm_path.csv
for the data. Create a data-raw
directory in
your package (hint: use usethis::use_data_raw()
and
usethis::use_data()
) to add it to the package. Don’t forget to
document it.test-linear-model.r
file to your regression testing (hint:
use usethis::use_testthat()
to create the directory structure).
Make sure your implementation passes the tests.README.md
file so that the badge points to your Travis build
(hint: use usethis::use_travis()
). You will know it is working
when the badge is green and gives the message “passing”. Exra hint:
sign up for the Github student pack.usethis::use_coverage()
).linear_model
and gradient_descent
are created with documentation, and uploaded to github Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.