chi.probability: Chi-squared probability

Description Usage Arguments Value Author(s) Examples

Description

Use Monte Carlo to generate a chi-squared distribution and calculate the p-value for the distribution.

Usage

1

Arguments

x

is the value for which the function calculate the p-value. x has to be numeric.

df

is the degrees of freedom by generating n number of random numbers for each variable. df has to be a positive integer.

n

is the number af random nubers for each variable. n has to be a positive integer.

Value

Returns the p-value for the chi-squared distribution.

Author(s)

Tobias Mortensen
Department of mathematics and computer science (IMADA)
University of southern Denmark, Odense
tomor14@student.sdu.dk

Examples

1
chi.probability(x=15, df=19, n=10000)

tomor14/Examst522 documentation built on May 31, 2019, 6:20 p.m.