View source: R/regr_easy_calc.R
regr_easy_calc | R Documentation |
Performs regression calculations: linear, quadratic and cubic, allowing to perform only one or both, returning a detailed result of the calculation
regr_easy_calc(x, y, model = "all")
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). |
returns a list with the regression result (linear, quadratic and/or cube)
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.