se | R Documentation |
Computes the residual sum of squares and the root of the mean of for squares
for models: nls
, nls.lm
, and
models CDFmodel and CDFmodelList obatained with [fitCDF].
se(model, stat)
## S3 method for class 'nls'
se(model, stat = c("rmse", "sme"))
## S3 method for class 'nls.lm'
se(model, stat = c("rmse", "sme"))
## S3 method for class 'CDFmodel'
se(model, stat = c("rmse", "sme"))
## S3 method for class 'CDFmodelList'
se(model, stat = c("rmse", "sme"))
model |
An object from one of the classes: |
stat |
Select which statistic to return: 1) The root mean of the square of error or the square errors of residuals. |
The requested statistic for each model.
## Simulate data from Normal distribution
## and search for the best fitted model
x <- rnorm(1000, mean = 5, sd = 2)
models <- fitCDF2(x, distNames = c(1, 7, 11, 12))
## Bases on the AIC criteria the best model is Weibull 3P
models
## In the current case Weibull is also the model with the lowest error
se(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.