Skip to contents

This is an internal function that does the actual fitting of the regression model to the spike-in control data, and is called by jgi_normalize_features() via a purrr::map() call after nesting the data.

Usage

fit_regression_model(control_data, method = "lm")

Arguments

control_data

A data frame containing the spike-in control data

method

The regression engine to use. Choices are "lm" or "glm"

Value

a workflow object

Details

The output is a workflow object that can be used for fitting with broom::augment(parsnip::extract_fit_engine(x)).