getExpStartVal: Get starting values for an exponential model

View source: R/getExpStartVal.R

getExpStartValR Documentation

Get starting values for an exponential model

Description

Obtains approximate starting values for exponential model 'y~a*exp(b*x)' by linearizing the exponential model to 'ln(y)~ln(a)+bx' and transforming parameter 'a'. Values generated with this function may not be apropriate for other nonlinear models.

Usage

getExpStartVal(x, y)

Arguments

x

A vector or dataframe column of an independent variable

y

A vector or dataframe column of a dependent variable

Value

list


earlycapistran/consLettersUtils documentation built on Nov. 22, 2022, 1:22 a.m.