classifyRegressionAnalysis: classifyRegressionAnalysis

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

classifyRegressionAnalysisR Documentation

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
)

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

Value

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

Examples

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

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