x0: x0/y0-values from orthogonal nonlinear least squares...

View source: R/fit_functions.R

x0R Documentation

x0/y0-values from orthogonal nonlinear least squares regression

Description

Returns the {\color{red} x_{0i}/y_{0i}} values as obtained from minimizing the Euclidean distance

\min\| D_i \| \equiv \min√{(x_i - {\color{red}x_{0i}})^2 + (y_i - {\color{red}y_{0i}})^2}

Usage

x0(object) 
y0(object) 

Arguments

object

an object returned from onls.

Value

A vector of \color{red}x_{0i} or \color{red}y_{0i} values.

Author(s)

Andrej-Nikolai Spiess

Examples

DNase1 <- subset(DNase, Run == 1)
DNase1$density <- sapply(DNase1$density, function(x) rnorm(1, x, 0.1 * x))
mod <- onls(density ~ Asym/(1 + exp((xmid - log(conc))/scal)), 
             data = DNase1, start = list(Asym = 3, xmid = 0, scal = 1))
x0(mod)
y0(mod)

onls documentation built on Oct. 31, 2022, 5:06 p.m.

Related to x0 in onls...