ChiFCritVal: ChiFCritVal(conf,n,p) A critical value function for Z and T...

Description Usage Arguments Value Author(s) Examples

View source: R/ChiFCritVal.R

Description

This function returns two tables of critical values (one-sided and two-sided) for the chi-squared and F (central) distributions.

Usage

1
2
ChiFCritVal(conf = c(0.99, 0.98, 0.975, 0.95, 0.9), n = 1000, p = 1,
  n2 = 1000, p2 = 1)

Arguments

conf

A vector of confidence levels (1-alpha) to calculate critical values. Defaults to c(.99, .985, .975, .95, .9)

n

A sample size for calculating degrees of freedom (df1 for F). Defaults to 1000.

p

The number of parameters being estimated for degrees of freedom (df1 for F). Defaults to 1.

n2

A sample size for calculating degrees of freedom (df2 for F). Defaults to 1000.

p2

The number of parameters being estimated for degrees of freedom (df2 for F). Defaults to 1.

Value

Returns a list object x containing the following values.

x$n The sample size input by the user.

x$p The number of estimated parameters input by the user.

x$n2 The second sample size input by the user.

x$p2 The second number of estimated parameters input by the user.

x$twoSided The table of 2-sided critical values for the chi-squred and F dists.

x$oneSided The table of 1-sided critical values (right tail) for the chi-squred and F dists.

Author(s)

Jennifer Starling

Examples

1
2
3
4
## Input specific parameters.
ChiFCritVal(conf=c(.99,.95), n=1000, p=1)
## Run with default parameters.
ChiFCritVal()

jstarling1/starlib documentation built on May 20, 2019, 2:12 a.m.