regr_easy_calc {regr.easy} | R Documentation |
Calculation of Regression Models: Linear, Quadratic and Cubic.
Description
Performs regression calculations: linear, quadratic and cubic, allowing to perform only one or both, returning a detailed result of the calculation
Usage
regr_easy_calc(x, y, model = "all")
Arguments
x |
Values that should be used as an independent variable for the regression calculation. |
y |
Values that should be used as a dependent variable for the regression calculation. |
model |
Character, defined which model will be calculated. model = "L", calculate the linear, model = "Q" calculate the quadratic, model = "C" calculate the cubic, model = "all" = calculate both). |
Value
returns a list with the regression result (linear, quadratic and/or cube)
Examples
library(regr.easy)
x <- seq(0,300,50)
y <- c(138.6,153.6,164.525,164.925,158.725,159.975,154.425)
regr_easy_calc(x,y,model = "all")
[Package regr.easy version 1.0.2 Index]