nlsModel: nlsModel

nlsModelR Documentation

nlsModel

Description

nlsModel function to perform the Lev. Marq. peak fitting This is a modified version of the nlsLM() function to avoid the frequent non-convergence problems arising when multiple constraints are set on a given XPS CoreLine

Usage

nlsModel(form, data, start, wts, Niter, upper = NULL)

Arguments

form

expresson containing the fitting function to be evaluated

data

the XPSCoreline to be fitted

start

the starting estimates for the fitting function

wts

optional numeric vector of weights. If present weighted least squares is performed

Niter

max iteration allowed

upper

upper,lower bounds for the estimates


GSperanza/RxpsG_2.3-1 documentation built on Feb. 11, 2024, 5:09 p.m.