logitSplines_start: Get the initial estimates for a logistic spline fit by...

View source: R/logitSplines_start.R

logitSplines_startR Documentation

Get the initial estimates for a logistic spline fit by assuming the binomial detection probability

Description

Get the initial estimates for a logistic spline fit by assuming the binomial detection probability

Usage

logitSplines_start(dp, mu, wt, df = 1)

Arguments

dp

A vector of detection proportion in all precursors.

mu

A vector of average observed intensities in all precursors.

wt

A vector of the numbers of trials (samples size).

df

Degrees of freedom for the natural cubic spline.

Value

A list of fitted coefficients and the basis matrix for a spline with some degrees of freedom.

Examples

# See the vignettes.

Mengbo-Li/protDP documentation built on Oct. 26, 2023, 9:50 p.m.