Learn R Programming

Covid19Wastewater (version 1.0.1)

classifyRegressionAnalysis: classifyRegressionAnalysis

Description

Adds the DHS Classification scheme to data created by runRegressionAnalysis

Usage

classifyRegressionAnalysis(
  DF,
  PSigTest = TRUE,
  per_changed_column = modeled_percentchange,
  model_sig_column = lmreg_sig
)

Value

DF with an extra column Catagory containing the results of the DHS binning

Arguments

DF

dataframe that contains results of buildRegressionEstimateTable

PSigTest

Controls if we filter values with P-values>.3

per_changed_column

column name of estimated percent change of signal

model_sig_column

column name of significance of linear model that generated the percent change

Examples

Run this code
data(Example_data, package = "Covid19Wastewater")
Example_data$modeled_percentchange = 0
Example_data$lmreg_sig = .01
classifyRegressionAnalysis(Example_data)

Run the code above in your browser using DataLab