Learn R Programming

lineartestr (version 1.0.0)

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

Value

The statistic value of the model.

Examples

Run this code
# NOT RUN {
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")
# }

Run the code above in your browser using DataLab