View source: R/tidying_functions.R
ipsatize | R Documentation |
Rescore each circumplex item using deviation scoring across variables. In other words, subtract each observation's mean response from each response. This effectively removes the presence of a general factor, which can make certain circumplex fit analyses more powerful.
ipsatize(data, items, na.rm = TRUE, prefix = "", suffix = "_i", append = TRUE)
data |
Required. A data frame or matrix containing at least circumplex scales. |
items |
Required. A character vector containing the column names, or a
numeric vector containing column indexes, of item variables in |
na.rm |
Optional. A logical that determines whether missing values should be ignored during the calculation of the mean during ipsatization (default = TRUE). |
prefix |
Optional. A string that will be added to the start of each
|
suffix |
Optional. A string that will be added to the end of each
|
append |
Optional. A logical that determines whether to append the
ipsatized scores to |
A data frame that matches data
except that the variables specified
in items
have been rescored using ipsatization.
Other tidying functions:
norm_standardize()
,
score()
data("raw_iipsc")
ipsatize(raw_iipsc, items = 1:32)
ipsatize(raw_iipsc, items = sprintf("IIP%02d", 1:32))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.