nps.test: Significance tests and confidence intervals for Net Promoter...

Description Usage Arguments Value Author(s) See Also

View source: R/Documented_Small_NPS_Functions.r

Description

This function performs one and two sample tests for the Net Promoter score(s) of Recommend data distributions. Currently, only a Wald type test is supported.

Usage

1
2
3
4
5
nps.test(x, y = NULL, test = "wald", conf = 0.95, breaks = list(0:6,
  7:8, 9:10))

## S3 method for class 'nps.test'
print(x, ...)

Arguments

x

A vector of Recommend scores

y

A vector of Recommend scores, to compare to x. If not specified, a one sample test on x is performed. Defaults to NULL

test

The type of test to perform. Currently only the Wald/Z-test ('wald') is supported

conf

the confidence level of the test and intervals. Defaults to 0.95

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)

...

Not used.

Value

A list of class nps.test containing:

nps.x, nps.y

The Net Promoter score(s)

delta

Where both x and y have been specified, the absolute difference between the two scores

int

The confidence interval generated. For a one sample test, this will be a confidence interval around nps.x. For a two sample test, this will be a confidence interval around the difference between nps.x and nps.y

conf

The confidence level used when performing the test, as specificed by conf in the function parameters

p.value

The p value of the significance test

sig

logical. Whether or not the p.value of the test exceeded 1-conf

se.hat

The estimated standard error of delta for a two sample test, otherwise of x

type

character string indicating whether a one or two sample test was performed

n.x, n.y

Counts for x and y

NULL

Author(s)

Brendan Rocks rocks.brendan@gmail.com

See Also

nps.var, nps.se, nps


NPS documentation built on May 2, 2019, 8:36 a.m.