-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#' @title Cronbach's Alpha for Items or Scales | ||
#' @name cronbachs_alpha | ||
#' @name alpha_cronbach | ||
#' | ||
#' @description Compute various measures of internal consistencies | ||
#' for tests or item-scales of questionnaires. | ||
|
@@ -20,11 +20,11 @@ | |
#' @examples | ||
#' data(mtcars) | ||
#' x <- mtcars[, c("cyl", "gear", "carb", "hp")] | ||
#' cronbachs_alpha(x) | ||
#' alpha_cronbach(x) | ||
#' | ||
#' @importFrom stats var na.omit | ||
#' @export | ||
cronbachs_alpha <- function(x) { | ||
alpha_cronbach <- function(x) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
DominiqueMakowski
Author
Member
|
||
# remove missings | ||
.data <- stats::na.omit(x) | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
I'm not sure, I think this name sounds strange. Though we have the other functions named
r2_name()
as well, I think this case is different, because we have no other alphas.