statistic_value: Calculates the Cramer von Mises value or Kolmogorov value...

Description Usage Arguments Value Examples

View source: R/residuals_statistics.R

Description

Calculates the Cramer von Mises value or Kolmogorov value given a linear model compatible with 'fitted.values' and 'residuals' functions.

Usage

1
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'.

Value

The statistic value of the model.

Examples

1
2
3
4
5
6
x <- 1:10
y <- 2*x + rnorm(10)
model <- lm(y~x-1)
statistic_value(model)
statistic_value(model, value = "cvm_value")
statistic_value(model, value = "kmv_value")

FedericoGarza/lineartestr documentation built on Jan. 31, 2021, 11:11 a.m.