Returns a categorical variable with default values over 1, 2, and 3.
Suited for running multinomial logistic regression.
To calculate the NPS score, use as_nps()
.
as_nps_cat(x, det = 1, pas = 2, pro = 3)
Numeric variable to pass through. Valid range is 0 to 10 inclusive, otherwise returns a NA.
Numeric value to represent the code for Detractor. Defaults to 1.
Numeric value to represent the code for Passive. Defaults to 2.
Numeric value to represent the code for Promoter. Defaults to 3.