Converts a one or two-tailed p-value from ANCOVA to an effect size of
a.pes(p, n.1, n.2, R, q, tail = "two",
level = 95, cer = 0.2, dig = 2, verbose = TRUE, id=NULL, data=NULL)
One- or two-tailed p-value.
Treatment group sample size.
Comparison group sample size.
Covariate outcome correlation or multiple correlation.
number of covariates.
One or two-tailed p-value. The argument is scalar only--it can only take on a single value of 'one' or 'two'. Default is two
.
Confidence level. Default is 95%
.
Control group Event Rate (e.g., proportion of cases showing recovery). Default is 0.2
(=20% of cases showing recovery). CER is used exclusively for NNT output. This argument can be ignored if input is not a mean difference effect size. Note: NNT output (described below) will NOT be meaningful if based on anything other than input from mean difference effect sizes (i.e., input of Cohen's d, Hedges' g will produce meaningful output, while correlation coefficient input will NOT produce meaningful NNT output).
Number of digits to display. Default is 2
digits.
Print output from scalar values? If yes, then verbose=TRUE; otherwise, verbose=FALSE. Default is TRUE.
Study identifier. Default is NULL
, assuming a scalar is used as input. If input is a vector dataset (i.e., data.frame
, with multiple values to be computed), enter the name of the study identifier here.
name of data.frame
. Default is NULL
, assuming a scalar is used as input. If input is a vector dataset (i.e., data.frame
, with multiple values to be computed), enter the name of the data.frame
here.
Standardized mean difference (
Variance of
lower confidence limits for
upper confidence limits for
Cohen's
Common Language Effect Size for
Cliff's Delta for
p-value for
Unbiased estimate of
Variance of
lower confidence limits for
upper confidence limits for
Cohen's
Common Language Effect Size for
p-value for
Correlation coefficient.
Variance of
lower confidence limits for
upper confidence limits for
p-value for
Fisher's z (
Variance of
lower confidence limits for
upper confidence limits for
p-value for
Odds ratio.
lower confidence limits for
upper confidence limits for
p-value for
Log odds ratio.
Variance of log odds ratio.
lower confidence limits for
upper confidence limits for
p-value for
Total sample size.
Number needed to treat.
Borenstein (2009). Effect sizes for continuous data. In H. Cooper, L. V. Hedges, & J. C. Valentine (Eds.), The handbook of research synthesis and meta analysis (pp. 279-293). New York: Russell Sage Foundation.
Cohen, J. (1988). Statistical power for the behavioral sciences (2nd ed.). Hillsdale, NJ: Erlbaum.
Furukawa, T. A., & Leucht, S. (2011). How to obtain NNT from Cohen's d: comparison of two methods. PloS one, 6(4), e19070.
McGraw, K. O. & Wong, S. P. (1992). A common language effect size statistic. Psychological Bulletin, 111, 361-365.
Valentine, J. C. & Cooper, H. (2003). Effect size substantive interpretation guidelines: Issues in the interpretation of effect sizes. Washington, DC: What Works Clearinghouse.
# NOT RUN {
# CALCULATE SEVERAL EFFECT SIZES BASED ON P-VALUE FROM ANCOVA STATISTIC:
a.pes(.3, 30, 30, .2, 3)
# }
Run the code above in your browser using DataLab