Description Usage Arguments Value Author(s) Examples
This function returns two tables of critical values (one-sided and two-sided) for the chi-squared and F (central) distributions.
1 2 | ChiFCritVal(conf = c(0.99, 0.98, 0.975, 0.95, 0.9), n = 1000, p = 1,
n2 = 1000, p2 = 1)
|
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. |
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.
Jennifer Starling
1 2 3 4 | ## Input specific parameters.
ChiFCritVal(conf=c(.99,.95), n=1000, p=1)
## Run with default parameters.
ChiFCritVal()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.