Description Usage Arguments Value Examples
Plot the Result of the Chi-square Test
1 | chitest.plot(stat, df, prng, side = "two", mt, dig = 4, ppt = 20)
|
stat |
Chi-square test statistic |
df |
Degree of freedom |
prng |
Range of x-axis |
side |
Type of the alternative hypothesis ("up", "low", "two"), Default: 'two' |
mt |
Graph title |
dig |
Number of digits below the decimal point, Default: 4 |
ppt |
Number of plotting points in critical region, Default: 20 |
None.
1 2 3 4 5 6 | chi0 = var1.test(x=1.24, n=25, var0=0.8, side="up")
chitest.plot(stat=chi0$stat, df=chi0$df, side="up")
x = c(20.0, 21.5, 20.9, 19.8, 22.5, 20.3, 23.6, 18.0, 23.3, 17.8)
res = var1.test(x=x, var0=2, side="two")
chitest.plot(stat=res$stat, df=res$df, side="two")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.