Description Usage Arguments Examples
This function estimates coefficients for three different types of model.
1 |
y |
dependent variable |
x |
regressor |
type |
type of model to use: linear - "lm", exponential - "exp" and power trend "power". Default "all" use all three types. |
return |
what kind of data to return: "data" - fitted values; "plot" - ggplot of fitted values; "table" - contains information about coefficint of determination (R2), standard deviation (sd), mean absolute error (mae), mean relative error (mre) and Kling-Gupta efficiency (KGE); "all" - returns all; |
cn |
whether to keep column names set by function (default is FALSE) |
data |
data to compute trends |
1 2 3 4 | est <- best_tr(dta$evaporation, dta$radiation, cn=TRUE)
df <- as.data.frame(est$dta.n)
est$tab
plot_grid(plotlist = est$gg.all)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.