Skip to content

Update a chunk in the RI2 guide #48

@jwbowers

Description

@jwbowers

@acoppock We've been recompiling guides and ran into a problem here. We had to remove the plot to get it to run through --- and the summary shows NAs. We'd like to have the nice plot again. Any ideas about what we should do? (I changed condition_names to conditions to update the call to declare_ra FYI.) The chunk starts on line 196 and is in the section headed # 7. Randomization inference for multi-arm trials

three_arm_dat <- read.csv("three_arm_dat.csv")
three_arm_dec <- declare_ra(N = 200, 
                            conditions = c("Control", "Treatment 1", "Treatment 2"))

ri_out <-
    conduct_ri(
      formula = Y ~ Z,
      declaration = three_arm_dec,
      data = three_arm_dat,
      sims = sims
    )


summary(ri_out)
## plot(ri_out)

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