Calculate the variance of a Net Promoter Score

Description

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

Usage

1
nps.var(x, breaks = list(0:6, 7:8, 9:10))

Arguments

x

A vector of Recommend scores

breaks

A list of length three, giving the integer Likert scale points for Detractors, Passives, and Promoters, respectively. The default is list(0:6, 7:8, 9:10)

Value

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

Author(s)

Brendan Rocks rocks.brendan@gmail.com

See Also

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