Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistencies in apa_print.emmGrid() #583

Open
mariusbarth opened this issue Feb 14, 2024 · 0 comments
Open

Inconsistencies in apa_print.emmGrid() #583

mariusbarth opened this issue Feb 14, 2024 · 0 comments
Assignees

Comments

@mariusbarth
Copy link
Collaborator

apa_print.emmGrid()returns an output object that does not fully comply with the structure of what apa_print() should return.

To illustrate:

$estimate
$estimate$Regularfasterthannonregular_mixeddeterministic
[1] "$\\Delta M = -66.24$, 95\\% CI $[-75.43, -57.05]$"

$estimate$Regularfasterthannonregular_probabilistic
[1] "$\\Delta M = -13.96$, 95\\% CI $[-22.47, -5.45]$"

$estimate$Mixeddeterministicfasterthanprobabilistic_regular
[1] "$\\Delta M = -47.55$, 95\\% CI $[-62.10, -33.01]$"

$estimate$Mixeddeterministicfasterthanprobabilistic_nonregular
[1] "$\\Delta M = 4.73$, 95\\% CI $[-6.92, 16.37]$"


$statistic
$statistic$Regularfasterthannonregular_mixeddeterministic
[1] "$t(98) = -14.30$, $p < .001$"

$statistic$Regularfasterthannonregular_probabilistic
[1] "$t(98) = -3.25$, $p = .002$"

$statistic$Mixeddeterministicfasterthanprobabilistic_regular
[1] "$t(98) = -6.49$, $p < .001$"

$statistic$Mixeddeterministicfasterthanprobabilistic_nonregular
[1] "$t(98) = 0.81$, $p = .423$"


$full_result
$full_result$Regularfasterthannonregular_mixeddeterministic
[1] "$\\Delta M = -66.24$, 95\\% CI $[-75.43, -57.05]$, $t(98) = -14.30$, $p < .001$"

$full_result$Regularfasterthannonregular_probabilistic
[1] "$\\Delta M = -13.96$, 95\\% CI $[-22.47, -5.45]$, $t(98) = -3.25$, $p = .002$"

$full_result$Mixeddeterministicfasterthanprobabilistic_regular
[1] "$\\Delta M = -47.55$, 95\\% CI $[-62.10, -33.01]$, $t(98) = -6.49$, $p < .001$"

$full_result$Mixeddeterministicfasterthanprobabilistic_nonregular
[1] "$\\Delta M = 4.73$, 95\\% CI $[-6.92, 16.37]$, $t(98) = 0.81$, $p = .423$"


$table
A data.frame with 6 labelled columns:

                                                                                                       contrast estimate         conf.int statistic
Regularfasterthannonregular_mixeddeterministic             Regular faster than nonregular | mixed deterministic   -66.24 [-75.43, -57.05]    -14.30
Regularfasterthannonregular_probabilistic                        Regular faster than nonregular | probabilistic   -13.96  [-22.47, -5.45]     -3.25
Mixeddeterministicfasterthanprobabilistic_regular       Mixed deterministic faster than probabilistic | regular   -47.55 [-62.10, -33.01]     -6.49
Mixeddeterministicfasterthanprobabilistic_nonregular Mixed deterministic faster than probabilistic | nonregular     4.73   [-6.92, 16.37]      0.81
                                                     df p.value
Regularfasterthannonregular_mixeddeterministic       98  < .001
Regularfasterthannonregular_probabilistic            98    .002
Mixeddeterministicfasterthanprobabilistic_regular    98  < .001
Mixeddeterministicfasterthanprobabilistic_nonregular 98    .423

contrast : Contrast 
estimate : $\\Delta M$ 
conf.int : 95\\% CI 
statistic: $t$ 
df       : $\\mathit{df}$ 
p.value  : $p$ 
attr(,"class")
[1] "apa_results" "list"       
  • The table element should not have row names
  • Term names should be created from the contrast column of the table, not row names, because these are inconsistent with sanitize_terms() (whitespace is removed)
@mariusbarth mariusbarth mentioned this issue Feb 16, 2024
@crsh crsh self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants