Skip to content

display() and paired t-test output #1085

@profandyfield

Description

@profandyfield

display() doesn't like the traditional entry paired t.test ... I assume because of the $ in the variables.

sleep2 <- reshape(sleep, direction = "wide",
                  idvar = "ID", timevar = "group")

## Traditional interface
t.test(sleep2$extra.1, sleep2$extra.2, paired = TRUE) |> 
  model_parameters() |> 
  display()

## Formula interface
t.test(Pair(extra.1, extra.2) ~ 1, data = sleep2) |> 
  model_parameters() |> 
  display()

Formula interface is displayed fine in rendered document, but the traditional interface is not (columns are thrown off as is the parameter label).

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions