Skip to contents

This function helps in the visual search of the starting input parameters for nlsLM, to fit the specified model (mod), using a graph for visual adjustment of model parameters (Trial and Error Strategy).

Usage

strb(b3,b4,b5,b6,b7,x,y,mod,modelo, bl, bu, xl, yl)

Arguments

b3

The initial value for the medium asymptote. Valid only for double sigmoid model, NA is assigned for the simple model

b4

The initial value for the coordinate at the inflection point for simple sigmoid model. For the double sigmoid model, it corresponds to the first inflection point

b5

The initial value for the amplitudes of the sigmoid, for the double sigmoid model corresponds to the amplitude of the first sigmoid. b5= L95a-b4 ,L95a is the lengths at 95 percent maturity for the complete sigmoid (single model) or the first sigmoid (double model)

b6

The coordinate at the second inflection point. Valid only for double sigmoid model, NA is assigned for the simple model

b7

The initial value for the amplitude of the second sigmoid. Valid only for double sigmoid model, NA is assigned for the simple model. b7= L95b-b6 ,L95b is the lengths at 95 percent maturity from the second distribution

x

A vector of the X-axis values

y

A vector of the Y-axis values

mod

A nonlinear model formula including variables and parameters

modelo

function from Repbio, to fit the specified model (mod)

bl

Lower (bl) weight values apply to each parameter (bi)

bu

Upper (bu) weight values apply to each parameter (bi).

xl

Title label for X axis

yl

Title label for Y axis

Value

1) A plot with the observed and fitted values

2) Model settings list

Examples

  if (FALSE) {
 strb(b3,b4,b5,b6,b7,x,y,mod,modelo)
  }