statistic_value {lineartestr}R Documentation

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

Value

The statistic value of the model.

Examples

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")

[Package lineartestr version 1.0.0 Index]