Learn R Programming

Covid19Wastewater (version 1.0.1)

regressionInnerLoop: regressionInnerLoop

Description

Runs a Linear regression on the data and returns it in a form to be merged in the runRegressionAnalysis function

Usage

regressionInnerLoop(Formula, DF, Keep = NULL)

Value

a row of a DF containing the site, last date, timespan, number of rows, model slope and significance, and predicted percent change, and what linear model was used

Arguments

Formula

LM model to be fit on DF

DF

Contains the data needed for Formula to work

Keep

The col in the original DF to keep besides Date