How to create by an iterative method a series of boxplots with statistics annotations
I've fitted the following model models_list_1 <- dataset_long %>% group_by(FEATURE) %>% do( fit = lmerTest::lmer( RESPONSE ~ TREATMENT * SESSION + (1 | SUBJECT), data = . ) ) %>% pull(fit) %>% lapply( function(x) summary(x)$coefficients ) %>% setNames( unique(dataset_long$FEATURE) ) and extracted the pairwise stastistics as follows md <- dataset_long %>% group_by(FEATURE) %>% do( fit = lmerTest::lmer( RESPONSE ~ TREATMENT * SESSION + (1 | SUBJECT), data = . ) ) %>% pull(fit) %>% lapply( function(m) lsmeans( m, pairwise ~ TREATMENT * SESSION, adjust = "tukey" ) ) If I would like to reprocude it
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.