Site icon R-bloggers

Simulation and power analysis of generalized linear mixed models

[This article was first published on Educate-R - R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

< section>

Simulation and power analysis of generalized linear mixed models

Brandon LeBeau

University of Iowa

< section>

Overview

  1. (G)LMMs
  2. Power
  3. simglm package
  4. Demo Shiny App!

< section>

Linear Mixed Model (LMM)

< section>

Power

< section>

Power Example

n <- seq(4, 1000, 2)
power <- sapply(seq_along(n), function(i) 
  power.t.test(n = n[i], delta = .15, sd = 1, type = 'two.sample')$power)

< section>

Power for (G)LMM

< section>

Power is hard

< section>

simglm Overview

< section>

Demo Shiny App

shiny::runGitHub('simglm', username = 'lebebr01', subdir = 'inst/shiny_examples/demo')

or

devtools::install_github('lebebr01/simglm')
library(simglm)
run_shiny()

< section>

Questions?

To leave a comment for the author, please follow the link and comment on their blog: Educate-R - R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.