Skip to content

Commit

Permalink
add SEM.alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Jul 25, 2024
1 parent 4159a5f commit 19ff8eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/itemstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ itemstats <- function(data, group = NULL,
ave.r=mean(rs[lower.tri(rs)]),
sd.r=sd(rs[lower.tri(rs)]),
alpha = CA(na.omit(data)))
overall$SEM.alpha <- with(overall, sd_total.score * sqrt(1-alpha))
rownames(overall) <- ""
df <- data.frame(N=apply(data, 2, function(x) sum(!is.na(x))),
mean=colMeans(data, na.rm = TRUE),
Expand Down

0 comments on commit 19ff8eb

Please sign in to comment.