knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
library(magrittr)

mle_fit <- new_linear() %>%
  fit(mtcars, NULL)

lasso_fit <- new_linear(coefs = "lasso") %>%
  fit(mtcars, NULL)

mle_fit
lasso_fit

coef(mle_fit)
coef(lasso_fit)

class(mle_fit)
class(lasso_fit)

OLD NOTES

reimagine

Currently I'm just keeping some rough notes here on what I think linear modelling could look like in R.

things that people may want to estimate

predictions

estimators people may want to use

diagnostics

goodness of fit / predictive performance measures

convenience / utility functions

interface



alexpghayes/reimagine documentation built on May 9, 2019, 7:31 p.m.