search for: interaction_model

Displaying 1 result from an estimated 1 matches for "interaction_model".

2024 Jun 06
2
R Shiny Help - Trouble passing user input columns to emmeans after ANOVA analysis
...orrect structure output$selected_columns <- renderPrint({ cols <- selected_columns() str(cols) }) # Instructional text output$two_way_anova <- renderText({ req(data()) "Two-way ANOVA with interaction" }) # Build ANOVA model with two-way interaction interaction_model <- reactive({ cols <- selected_columns() req(cols) data <- data() data$dep <- cols$dependent data$indep1 <- cols$independent1 data$indep2 <- cols$independent2 data$rand <- cols$random lmer(dep ~ indep1 * indep2 + (1|rand), data = data) }) #...