サンプルサイズ計算チャート
サンプルサイズ計算チャートテンプレート。効果量×サンプルサイズ、検出力別曲線。

R Code (ggplot2)
library(ggplot2) # ---- Sample Size Calculation Chart ---- # あなたのデータを入力してください df <- data.frame( x = c(), y = c() ) ggplot(df, aes(x = x, y = y)) + geom_point(size = 2) + geom_line() + scale_x_continuous(name = "Effect Size", limits = c(0, 1)) + scale_y_continuous(name = "Required Sample Size (n)", limits = c(0, 500)) + labs(title = "Sample Size Calculation Chart") + theme_bw(base_size = 14) + theme(plot.title = element_text(face = "bold", hjust = 0.5))







