fitSingleSigmoid: Fit sigmoid model

Description Usage Arguments Details Value Examples

View source: R/model_fitting.R

Description

Fit sigmoid model

Usage

1
fitSingleSigmoid(x, y, start = c(Pl = 0, a = 550, b = 10))

Arguments

x

numeric vector of the independent variables (typically temperature)

y

numeric vector of the dependent variables (typically relative abundance measurements)

start

numeric vector of start parameters for the melting curve equation

Details

Fits the following function to the data: y = (1 - Pl) / (1+exp((b - a/x))) + Pl

Value

model summary of type "nls"

Examples

1
2
3
data(stauro_TPP_data_tidy)
stk4 <- dplyr::filter(stauro_TPP_data_tidy, grepl("STK4", uniqueID))
fitSingleSigmoid(stk4$temperature, stk4$relAbundance)

NPARC documentation built on Nov. 8, 2020, 8:05 p.m.