View source: R/library--analysis_tools--DHS_methods--regression_algo.R
runRegressionAnalysis | R Documentation |
The DHS model system. runs a LM on each each set of n consecutive measurements and returns a summary of the information
runRegressionAnalysis(DF, Formula, Keep = NULL, n = 5, verbose = FALSE)
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.