View source: R/ch.reducedChiSq.r
ch.reducedChiSq | R Documentation |
This function calculates the reduced Chi Square from a from a model fit. The empirical Y, y variance, and the fit Y, as well as the number of free parameters are input.
ch.reducedChiSq(y, yFit, yVar, numParameters)
y |
A numeric vector containing the empirical Y from the data. |
yFit |
A numeric vector containing the fit Y from the model. |
yVar |
A numeric vector containing the variance of each row in the Y vector. |
numParameters |
The number of free parameters. ' |
a list containing the number of observations (n); the degrees of freedom (df), the chi square statistic (chiSq), the p value associated with the chi square and df, and the reduced chi square.
ch.reducedChiSq (myY, fitY, yVaraince, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.