kappa4nlsShort: Sigmoidal curve fitting.

Description Usage Arguments Details Value Examples

Description

A framework for nonlinear least squares fitting of the four-parameter kappa sigmoidal function.

Usage

1

Arguments

formula

An LHS ~ RHS formula, specifying the linear model to be estimated.

data

A data.frame which contains the variables in formula.

xin

Numeric vector of length 3 containing initial values, for σ, h, and k.

...

Arguments to be passed on to the outer control list of constrOptim.nl.

Details

A shortened version of kappa4nls.

Value

kappa4nlsShort: A list with the following components:

Examples

1
2
3
4
k <- kappa4tc(-4, 0, 1)$par
x <- seq(qkappa4(0, 4, 0.4, -4, k), qkappa4(0.7, 4, 0.4, -4, k), length.out=100)
y <- sapply(x, function(i) pkappa4(i, 4, 0.4, -4, k))
kappa4nlsShort(y~x, xin=c(0.1, -3, -0.1))

mtloots/alR documentation built on May 23, 2019, 8:18 a.m.