logit_ztbinom: Fitting an empirical logistic spline curve for detection...

View source: R/logit_ztbinom.R

logit_ztbinomR Documentation

Fitting an empirical logistic spline curve for detection proportion

Description

Fitting an empirical logistic spline curve for detection proportion

Usage

logit_ztbinom(dp, X, wt, beta0, b0.upper = 0, b1.upper = Inf)

Arguments

dp

A vector of detection proportion in all precursors.

X

The basis matrix for a natural cubic spline.

wt

A vector of the numbers of trials (samples size) for zero-truncated binomial distribution.

beta0

Start values for the beta coefficients.

b0.upper

Upper bound for b0.

b1.upper

Upper bound for b1.

Value

Fitted beta coefficients and the fitting history.

Examples

## See the vignettes.

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