statistic_value: Calculates the Cramer von Mises value or
Kolmogorov value
given a linear model compatible with
`fitted.values` and `residuals` functions.
Description
Calculates the Cramer von Mises value or
Kolmogorov value
given a linear model compatible with
`fitted.values` and `residuals` functions.
Usage
statistic_value(model, value = "cvm_value")
Arguments
model
An existing fit from a linear model function.
value
Type of value to compute, can be `cvm_value` or `kmv_value`.
# NOT RUN {x <- 1:10y <- 2*x + rnorm(10)
model <- lm(y~x-1)
statistic_value(model)
statistic_value(model, value = "cvm_value")
statistic_value(model, value = "kmv_value")
# }