runRegressionAnalysis: runRegressionAnalysis

View source: R/library--analysis_tools--DHS_methods--regression_algo.R

runRegressionAnalysisR Documentation

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)

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

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


Covid19Wastewater documentation built on Aug. 25, 2023, 1:07 a.m.