chi.gof1: Goodness of Fit Test from a Table

chi.gof1R Documentation

Goodness of Fit Test from a Table

Description

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

Usage

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

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

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.