regressionInnerLoop: regressionInnerLoop

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

regressionInnerLoopR Documentation

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)

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

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.