skewNormalErrors: Calculate the MSE between a skewed normal function and data.

View source: R/skewNormalFit.R

skewNormalErrorsR Documentation

Calculate the MSE between a skewed normal function and data.

Description

?

Usage

skewNormalErrors(par, data)

Arguments

par

A named numeric vector with parameters mu (mean), sigma (standard deviation), a skew (lambda), a scale (multiplication factor), and an offset (a number added everywhere) that describe a normal function. The scale is applied before the offset.

data

A data frame with columns X and y data points to compare to the normal function described by the parameters.

Details

?

Value

A numeric value: the mean squared error between the data and the evaluated values of the function at the same x-coordinates.

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.