Learn R Programming

Covid19Wastewater (version 1.0.1)

runRegressionAnalysis: runRegressionAnalysis

Description

The DHS model system. runs a LM on each each set of n consecutive measurements and returns a summary of the information

Usage

runRegressionAnalysis(DF, Formula, Keep = NULL, n = 5, verbose = FALSE)

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

DF

Contains TS data should only contain one site

Formula

LM model to be fit on a subsection of the data

Keep

The col in the original DF to keep besides Date

n

number of rows to be in each LM regression

verbose

prints what site we are in