gimme_eq: Return model equation

Description Usage Arguments Examples

View source: R/mainFun.R

Description

Function that returns model equation and it's coefficients.

Usage

1
gimme_eq(y, x, type = "lm", eqOnly = FALSE, message = TRUE)

Arguments

y

dependent variable

x

regressor

type

type of trend to use: linear - "lm", exponential - "exp" and power trend "power" or "all". Default is "lm".

eqOnly

default is FALSE, if TRUE, returns only equation without coefficients.

message

whether to print equation to the console (default is TRUE).

Examples

1
gimme_eq(est$evaporation, eat$radiation, type = "lm", eqOnly = T)

tgmwri/evapR documentation built on April 30, 2021, 10:23 p.m.