power_equation_all function

use power equation to fit observed values

use power equation to fit observed values

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

Returns

nls model

Examples

power_equation_all(c(1,2,3,5,7), c(5,10,15,17,20))