chi.gof1: Goodness of Fit Test from a Table

Description Usage Arguments Value Examples

Description

Goodness of fit test from a table, when the probability is given.

Usage

1
chi.gof1(x, p, alp = 0.05, dig = 2, dig2 = 4)

Arguments

x

Table of frequency

p

Probability vector

alp

Level of significance, Default: 0.05

dig

Number of digits below the decimal point for the table, Default: 2

dig2

Number of digits below the decimal point for the results, Default: 4

Value

list(stat=test stat, df=degree of freedom, crv=critical value, pv=p-value, tab=table)

Examples

1
2
3
# Goodness-of-fit Test
x = c(31,26,22,18,13,10)
ans = chi.gof1(x)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.