Conduct Heartbeat Analysis
Usage
heartbeat(
data,
type = c("counts", "standard", "votes"),
threshold = 1,
props = FALSE,
controversial = TRUE
)
Arguments
- data
A numeric data frame or object that can be coerced into a data frame.
- type
Type of output. The default is "counts" which provides tallies the up/neutral/down votes of each item, "standard" standardizes each rating of the original data frame. "votes" converts the standardization score into up-vote/down-vote/neutral based on the threshold value.
- threshold
A number that denotes the range of "Neutral", or conversely, what deviation score above/below the base-rate is necessary to count as an up/down-vote. Default = 1.
- props
Default is false. If props = TRUE, it will convert counts of each vote into proportions. This Will only change output when type = "counts".
- controversial
Default is true. If controversial = FALSE, the function will not provide the controversy score for each item.