score: Calculation of NPS and estimated standard error

Description Usage Arguments Value Examples

Description

Calculation of the score and its standard error. The function allows for the calculation of the standard error using both its analytical derivation and through non-parametric bootstrap.

Usage

1
2
3
4
score(object, ...)

## S4 method for signature 'nps'
score(object, boot = FALSE, R = 999, ...)

Arguments

object

An object of class nps

...

Additional arguments (currently not used)

boot

A logical flag for whether to use bootstrap for the calculation of the standard error. Default is FALSE.

R

Number of bootstrap replications

Value

A vector with the estimated score and the standard error

Examples

1
## Not run: score(x, boot=TRUE, R=999)

griverorz/nps-package documentation built on May 17, 2019, 8:38 a.m.