Learn R Programming

myTAI (version 2.3.4)

goodness_of_fit: Goodness of Fit Test

Description

Perform a Kolmogorov-Smirnov test to assess goodness of fit between the null sample and fitted distribution.

Usage

goodness_of_fit(test_result)

Value

A ks.test result object

Arguments

test_result

A TestResult object

Details

This function tests whether the null sample follows the fitted distribution using the Kolmogorov-Smirnov test. A significant result indicates poor fit. # Test goodness of fit # gof_result <- goodness_of_fit(test_result)