nps_var: Calculate the variance of a Net Promoter Score

Description Usage Arguments Value Author(s) See Also

Description

This function calculates the Net Promoter Score variance, taking a vector of raw Recommend data

Usage

1
2
3
4
5
6
7
nps_var(x, breaks = getOption("nps.breaks"), na.rm = FALSE)

nps_var_(x, na.rm = FALSE)

nps.var(...)

npvar(...)

Arguments

x

A vector of Recommend scores

breaks

A vector of length three, giving integer Likert scale break-points for Net Promoter categories. Best practice is to set the values you'd like to use at the start of a session, with options(nps.breaks = c(0, 6, 8, 10)) (for the usual setting of 0-6 being Detractors, 7-8 being Passives and 9-10 being Promoters, also the package default), or whichever values you would like. However, a vector may be supplied directly.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

...

Passed to non-depricated functions

Value

numeric. The variance of the distribution, ranging from 0 to 1.

Author(s)

Brendan Rocks foss@brendanrocks.com

See Also

nps_var_, a version which works on counts or proportions of responses


brendan-r/NPS documentation built on May 13, 2019, 5:08 a.m.