genp {homnormal} | R Documentation |
Generalized p value Test for Homogeniety
Description
Tests the homogeniety of variances for more than two normal groups using generalized p value test.
Usage
genp(x1, x2, alfa = 0.05, m = 2000, table = TRUE, graph = "none")
Arguments
x1 |
a numeric matrix containing the values of groups. |
x2 |
numeric matrix containing the values of group numbers. |
alfa |
significance level of the test. Default number is 0.05. |
m |
number of resampling. |
table |
a logical variable that indicates table will appear or not. Default is TRUE. |
graph |
box plot of groups of raw or centered data. |
Value
if table is TRUE, then it gives a detailed table, else it gives a vector of r value(r=1 when null hypothesis was rejected and r=0 when null hypothesis was accepted) p-value and test statistic value.
References
Liu, X., & Xu, X. (2010). A new generalized p-value approach for testing the homogeneity of variances. Statistics & probability letters, 80(19-20), 1486-1491.
See Also
Brown_Forsythe
, Cat_GG
, Cat_LR
, bdai
, slrt
, levene
Examples
data(FH_data)
x1=FH_data$SurvivalTime
x2=FH_data$HospitalNo
genp(x1,x2)
readline(prompt = "Pause. Press <Enter> to continue...")
genp(x1,x2,alfa=0.10)
readline(prompt = "Pause. Press <Enter> to continue...")
genp(x1,x2,alfa=0.10,m=5000)
readline(prompt = "Pause. Press <Enter> to continue...")
genp(x1,x2,alfa=0.10,table=FALSE)
readline(prompt = "Pause. Press <Enter> to continue...")
genp(x1,x2,alfa=0.10,table=FALSE,graph="raw")
readline(prompt = "Pause. Press <Enter> to continue...")
genp(x1,x2,alfa=0.10,table=FALSE,graph="none")
# ---THIS VERSION IS ESPECIALLY USEFUL FOR COMPARISON STUDIES BY SIMULATION---
# #first value of the vector is r value(r=1 when rejected and r=0 when accepted null hypothesis)
# second value of the vector is the p-value and third value is the tests statistic value