J | R Documentation |
J()
computes the correction factor to get an unbiased Cohen's $d_p$ in either within-
subject, between-subject design and single-group design. See
\insertCitel22,gc18,;textualCohensdpLibrary.
J(statistics, design)
statistics |
a list of pre-computed statistics. The statistics to provide
depend on the design:
- for "between": |
design |
the design of the measures ( |
This function decreases the degrees of freedom by 1 in within-subject design when the population rho is unknown.
The correction factor for unbiasing a Cohen's $d_p$. The return value is internally a dpObject which can be displayed with print, explain or summary/summarize.
# example in which the means are 114 vs. 101 with sds of 14.3 and 12.5 respectively
J( statistics = list( n1 = 12, n2 = 12 ),
design = "between")
# example in a repeated-measure design
J( statistics = list( n = 12, rho = 0.53 ),
design = "within")
# example with a single-group design where mu is a population parameter
J( statistics = list( n = 12 ),
design = "single")
# The results can be displayed in three modes
res <- J( statistics = list( n = 12 ),
design = "single")
# a raw result of the Cohen's d_p and its confidence interval
res
# a human-readable output
summarize( res )
# ...and a human-readable ouptut with additional explanations
explain( res )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.