R/resss.R

Defines functions resss

Documented in resss

resss <- function(prm, resfn, ...) {
    # computes sumsquares function from residuals defined by
    # resfn at parameters prm and extra variables defined in
    # the dot-arguments J C Nash 2012-4-26
    resids <- resfn(prm, ...)  # ?? try()
    ss <- as.numeric(crossprod(resids))
}

Try the nlsr package in your browser

Any scripts or data that you put into this service are public.

nlsr documentation built on Jan. 29, 2018, 3 a.m.