Skip to content

How to represent between- vs. within-subjects designs? #30

Answered by emitanaka
emjun asked this question in Q&A
Discussion options

You must be logged in to vote

I only saw this question now (somehow no notification from GitHub?) so excuse me it's late (feel free to tag me next time).

I've changed the API now so for the first scenario, it will now be:

des1 <- design(name = "Tutoring") %>%
    set_units(student = 40) %>%
    set_trts(tutoring = c("No-Tutoring", "Tutoring")) %>%
    allot_trts(tutoring ~ student) %>%
    assign_trts(order = "random") %>% 
    set_rcrds(exam_mark = student) %>% 
    serve_table()

As for the second scenario, you need to set up your units in the long format, so you need to shift how you set up the unit structure. So if you want to specify the nature for the first (or before) and second (or after) exam, now you have a f…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by emitanaka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants