Description Usage Arguments Value Examples

View source: R/two.sample.var.R

Two-sample t-test for comparing variability measures.

1 2 3 4 5 6 7 8 | ```
two.sample.var(x, y, alternative = c("two.sided", "less", "greater"),
scale.option = c("Levene.Med", "Levene.Med.0", "Levene.Med.00",
"Variance"), scale.adj = TRUE, scale.00 = 2, paired = FALSE,
alpha = 0.05, plot.ci = TRUE, plot.ici = TRUE,
ici.interval = NULL, add.individual.ci = TRUE, by.ici = 0.5,
xlab.ici = "", rounds = 3, rounds.plot = NULL,
ci.interval = NULL, by.ci = 0.5, name.x = NULL, name.y = NULL,
pool.mean = FALSE, logit.interval = NULL, tol = 1e-07)
``` |

`x` |
A vector specifying the first sample. |

`y` |
A vector specifying the second sample. |

`alternative` |
A character string specifying the alternative hypothesis; "two.sided" for two-tailed, "less" for left-tailed, and "greater" for right-tailed alternative hypothesis. The default option is "two.sided". |

`scale.option` |
A character string specifying the transformation on each observation; "Levene.med" for Levene's transformation (absolute difference from the sample median), "Levene.med.0" for Levene's transformation with zero removal for odd sample(s), "Levene.med.00" for Levene's transformation with zero removal for both odd and even sample(s), and "Variance" for squared difference from the sample mean. The default option is "Levene.med.0". |

`scale.adj` |
A boolean specifying whether or not any constant should be multiplied to each transformed observation. This is useful to obtain unbiased estimates. The default option is TRUE. |

`scale.00` |
A scale to be applied for an even sample when "Levene.med.00" is chosen. The default option is 2, but the square root of 2 is another viable option. |

`paired` |
A boolean specifying whether or not the samples are paired or independent. The default option is FALSE. |

`alpha` |
A numeric specifying the significance level. The default option is 0.05. |

`plot.ci` |
A boolean specifying whether or not the deviation between the two samples should be plotted. The default option is TRUE. |

`plot.ici` |
A boolean specifying whether or not the inferential confidence intervals for the two samples should be plotted. The default option is TRUE. |

`ici.interval` |
A vector with two elements specifying the range of values for the plot of inferential confidence intervals. The default option is NULL, in which case, an appropriate range is automatically specified. |

`add.individual.ci` |
A boolean specifying whether or not the confidence intervals with the confidence level implied by |

`by.ici` |
A numeric specifying te scales in the plot for ici.interval. The default option is 0.5. |

`xlab.ici` |
A character string specifying the x axis labels used for the inferential confidence intervals and confidence intervals. The default option is "". |

`rounds` |
A numeric specifying the number of decimal places to be rounded. The default option is 3. |

`rounds.plot` |
A numeric specifying the number of decimal places to be rounded. The default option is NULL, in which case it is set equal to |

`ci.interval` |
A vector with two elements specifying the range of values for the plot of confidence intervals. The default option is NULL, in which case, an appropriate range is automatically specified. |

`by.ci` |
A numeric specifying te scales in the plot for ci.interval. The default option is 0.5. |

`name.x` |
A character string specifying the label for the x variable. The default option is NULL, in which case, it is set to "x". |

`name.y` |
A character string specifying the label for the y variable. The default option is NULL, in which case, it is set to "y". |

`pool.mean` |
A boolean specifying whether or not the sample means should be pooled for the degrees of freedom. The default option is FALSE. |

`logit.interval` |
A vector with two elements specifying the lower and upper bound if logit transformation is used. The default option is NULL. |

`tol` |
A numeric specifying the cut-off value for a numerical zero. The default option is 1e-7. |

`CI` |
A data frame displaying the effect size estimate, lower and upper bound of the effect size confidence interval, and the degrees of freedom. |

`ICI` |
A data frame displaying the sample mean for both x and y, lower and upper bounds of the inferential confidence intervals, the degrees of freedom of the inferential confidence intervals, the inferential significance level, and the significance level. |

`Statistic` |
A data frame displaying the test statistic and p-value of the generalized two-sample t-test. |

`Ind.CI` |
A data frame displaying the sample mean for both x and y, lower and upper bounds of the individual confidence intervals, the degrees of freedom of the individual confidence intervals, the sample standard deviations, and the significance level. |

`Effect.Sizes` |
A data frame displaying Cohen's d and log ratio for the mean and variability measure comparisons. |

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.