NNS.ANOVA {NNS} | R Documentation |
NNS ANOVA
Description
Analysis of variance (ANOVA) based on lower partial moment CDFs for multiple variables, evaluated at multiple quantiles (or means only). Returns a degree of certainty to whether the population distributions (or sample means) are identical, not a p-value.
Usage
NNS.ANOVA(
control,
treatment,
means.only = FALSE,
confidence.interval = 0.95,
tails = "Both",
pairwise = FALSE,
plot = TRUE,
robust = FALSE
)
Arguments
control |
a numeric vector, matrix or data frame. |
treatment |
|
means.only |
logical; |
confidence.interval |
numeric [0, 1]; The confidence interval surrounding the |
tails |
options: ("Left", "Right", "Both"). |
pairwise |
logical; |
plot |
logical; |
robust |
logical; |
Value
Returns the following:
"Control Mean"
control
mean."Treatment Mean"
treatment
mean."Grand Mean"
mean of means."Control CDF"
CDF of thecontrol
from the grand mean."Treatment CDF"
CDF of thetreatment
from the grand mean."Certainty"
the certainty of the same population statistic."Lower Bound Effect"
and"Upper Bound Effect"
the effect size of thetreatment
for the specified confidence interval."Robust Certainty Estimate"
and"Lower 95 CI"
,"Upper 95 CI"
are the robust certainty estimate and its 95 percent confidence interval after permutations ifrobust = TRUE
.
Author(s)
Fred Viole, OVVO Financial Systems
References
Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" https://www.amazon.com/dp/1490523995/ref=cm_sw_su_dp
Viole, F. (2017) "Continuous CDFs and ANOVA with NNS" https://www.ssrn.com/abstract=3007373
Examples
## Not run:
### Binary analysis and effect size
set.seed(123)
x <- rnorm(100) ; y <- rnorm(100)
NNS.ANOVA(control = x, treatment = y)
### Two variable analysis with no control variable
A <- cbind(x, y)
NNS.ANOVA(A)
### Multiple variable analysis with no control variable
set.seed(123)
x <- rnorm(100) ; y <- rnorm(100) ; z <- rnorm(100)
A <- cbind(x, y, z)
NNS.ANOVA(A)
## End(Not run)