findDistr: Fitting a Distribution

Description Usage Arguments Details Value See Also

View source: R/findDistr.R

Description

Fitting a n-fold multiple normal distribution with the parameters mean, standard deviation (sd) and n to a given subset of Data.

Usage

1
findDistr(df, startParams, fit, q)

Arguments

df

data frame, containing columns "diam" and "obs" which specify the Zone Data

startParams

numeric vector with start parameters for the nonlinear least squares algorithm

fit

criterion for the fit; default: "n_abs"; options: "Pmean", "Psd", "Pn", "sigma"

q

numeric value, giving the quantile of the distribution to be used as the ECOFF estimate

Details

The technique used is non-linear least squares, so the sum of the squared residuals is minimized.

Value

A numeric vector with the estimated ECOFF, mean, standard deviation, n and the fit value.

See Also

estimateCutoff


sp2019-antibiotics/bacSplittR documentation built on Nov. 5, 2019, 9:14 a.m.