Learn R Programming

psycho (version 0.4.91)

analyze.htest: Analyze htest (correlation, t-test...) objects.

Description

Analyze htest (correlation, t-test...) objects.

Usage

# S3 method for htest
analyze(x, effsize_rules = "cohen1988", ...)

Arguments

x

htest object.

effsize_rules

Grid for effect size interpretation. See interpret_r.

...

Arguments passed to or from other methods.

Value

output

Examples

Run this code
# NOT RUN {
library(psycho)

df <- psycho::affective

x <- t.test(df$Tolerating, df$Adjusting)
x <- t.test(df$Tolerating ~ df$Sex)
x <- t.test(df$Tolerating, mu = 2)
x <- cor.test(df$Tolerating, df$Adjusting)

results <- analyze(x)
summary(results)
print(results)
# }

Run the code above in your browser using DataLab