summary.gfit: Calculates the p-value of the goodness-of-fit test.

View source: R/gfit.R

summary.gfitR Documentation

Calculates the p-value of the goodness-of-fit test.

Description

This function calculates the p-value of the goodness-of-fit test from an object of class "gfit".

Usage

## S3 method for class 'gfit'
summary(object, ...)

Arguments

object

an object of class "gfit".

...

other parameters passed to summary.

Details

It computes the P-value, call summary on the vector of statistics simulated under the null and returns the value of the observed statistic.

Value

A list of the following elements

pvalue

P-value for goodness-of-fit.

s.dist.sim

the result of a call to the function summary. Provides a summary of the distribution of the goodness-of-fit statistic simulated under the null.

dist.obs

the observed value goodness-of-fit statistic.

See Also

gfit, abc, plot.gfit

Examples

 ## see ?gfit for exemples

abc documentation built on May 20, 2022, 1:11 a.m.