Skip to contents

use power equation to fit observed values

Usage

power_equation_all(x, y, maxit = 100)

Arguments

x

vector for x values

y

vector for y values

maxit

numeric value for maximum initial pars try

Value

nls model

Examples

power_equation_all(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: 4 
#> Achieved convergence tolerance: 3.102e-06