bdai | R Documentation |
Tests the homogeniety of variances for more than two normal groups using Bahandary-Dai test.
bdai(x1, x2, alfa = 0.05, table = TRUE, graph = "none")
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. |
table |
a logical variable that indicates table will appear or not. Default is TRUE. |
graph |
box plot of groups of raw or centered data. |
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.
Bhandary, M., & Dai, H. (2008). An alternative test for the equality of variances for several populations when the underlying distributions are normal. Communications in Statistics-Simulation and Computation, 38(1), 109-117.
Brown_Forsythe
, Cat_GG
, Cat_LR
, genp
, slrt
, levene
data(FH_data) x1=FH_data$SurvivalTime x2=FH_data$HospitalNo bdai(x1,x2) readline(prompt = "Pause. Press <Enter> to continue...") bdai(x1,x2,alfa=0.10) readline(prompt = "Pause. Press <Enter> to continue...") bdai(x1,x2,alfa=0.10,table=FALSE) readline(prompt = "Pause. Press <Enter> to continue...") bdai(x1,x2,alfa=0.10,table=FALSE,graph="raw") readline(prompt = "Pause. Press <Enter> to continue...") bdai(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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.