-
-
Notifications
You must be signed in to change notification settings - Fork 24
Class `effectsize_table`
-
If that function computes the effect size from raw data, the input options should match those of the corresponding
htestfunction. For example, any input tot.test()can be used as input tocohens_d()and it will generate the corresponding effect size for that t-test. -
Other inputs for adjusting the effect size computation (e.g.,
pooled_sdincohens_d()). -
All functions should have the option to estimate CIs
- Preferably using an analytical method (ncp or normal appriximation), but if there isn't a well established one, can use percentile bootstrapping with the
{boot}package, and aiterationsset by the user (default to 200). - For ncp methods, see the internal
.get_ncp_t.get_ncp_Fand.get_ncp_chifunctions. - if
ci = NULLin input, no CI should be returned.
- Preferably using an analytical method (ncp or normal appriximation), but if there isn't a well established one, can use percentile bootstrapping with the
-
CIs should be defined according to
alternativeargument, which should be one ofc("two.sided", "greater", "less"):- For two directional effect sizes, default to
"two.sided" - For uni-directional effect sizes, default to
"greater" - One-sided CIs should have the non-estimated bound set by the function.
- For two directional effect sizes, default to
-
verbose(default toTRUE) for toggling warnings / messages. -
For effect size of 2 sample differences:
muvalue of the null.
All effectsize_tables are data frames, with the following columns, in this order:
-
Response,Parameteror other (optional) - column(s) that adds information required to identify the the effect size. - The effect size - the column name is the name of the effect size. See
is_effectsize_name()and the internales_infodata frame. -
CI(optional) - ci level. -
CI_low(optional) - lb of CI. -
CI_high(optional) - ub of CI.
The classes are: c("effectsize_table", "see_effectsize_table", "data.frame").
The following attributes are mandatory:
-
ci[numeric]orNULL -
ci_method- a[list]with:-
method- the name of the method ("ncp","normal","percentile bootstrap") - Other information relevant to the method. E.g.,
list(method = "ncp", distribution = "F"),list(method = "bootstrap", iterations = iterations)
-
-
alternative[character] -
approximate[logical]: is the effect size itself only an approximate? E.g., all theF_to_*function have this set toTRUE. Some of theeta_square()options / models set this toFALSE.
Can also add table_footer [character] with any additional information to be presented to the user when printing. Use sparingly.
-
For ANOVA effect sizes (see API):
-
generalized[character]- vector of names of effects generalized over. Can also beTRUEif generalized over all. -
anova_type[numeric]- 1, 2 or 3 for the type of ANOVA table the effects are based on.
-
-
For effect size of 2 sample differences
-
Add the
effectsize_differenceclass - Add the following attributes:
-
mu[numeric]- the value used for the null. -
paired:[logical]for the two sample case, was it paired? For the the one-sample case,NULL. -
pooled_sd/pooled_cov[logical]: for the two sample case, was a pooled SD used?
-
-
Add the