Skip to contents

use power equation to fit observed values

Usage

power_equation_base(x, y)

Arguments

x

vector for x values

y

vector for y valyes

Value

nls model

Examples

power_equation_base(c(1,2,3,5,7), c(5,10,15,17,20))
#> Nonlinear regression model
#>   model: y ~ a * x^b
#>    data: parent.frame()
#>      a      b 
#> 6.7601 0.5757 
#>  residual sum-of-squares: 8.813
#> 
#> Number of iterations to convergence: 6 
#> Achieved convergence tolerance: 1.336e-06