jasco_extract_lm: jasco_extract_lm

Description Usage Arguments Details Value Examples

View source: R/model.R

Description

This is a wrapper for lm and a helper function for jasco_extract_lm.

Usage

1
jasco_extract_lm(data, response, predictor, min, max, ...)

Arguments

data

a tibble with spectrophotometer data, eg. output from jasco_tibble

response

unquoted name of the response variable found in the tibble

predictor

unquoted name of the predictor variable found in the tibble

Details

For a given tibble, this function allows to ...

Value

tibble, that includes parameters and statistics of the fitted linear model using broom::glance, broom::tidy and broom::augment, nested per experiment. Metadata stated per experiment is maintained.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# this is a typical output from jasco_tibble
jasco_df

jasco_df %>%
  jasco_extract_lm(., response = Absorbance, predictor = Time_s, min = 75, max = 175)

# Conversion from Absorbance to NADH concentration (mol/l) is optional
jasco_df %>%
  convert_absorbance(., "NADH") %>%
  jasco_extract_lm(., response = NADH, predictor = Time_s, min = 75, max = 175)

mirkko-hub/jasco2 documentation built on Jan. 1, 2021, 2:53 p.m.