make_scenarios: Make table of scenarios

Description Usage Arguments Examples

View source: R/make_scenarios.R

Description

Make table of scenarios

Usage

1
make_scenarios(m, redistribution = 0.5)

Arguments

m

Model output from model_survey()

redistribution

Proportion of highest score distributed to lower scores

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(NPS)
library(NPSdrivers)
library(dplyr)

data(survey_sim)

survey_sim <- survey_sim %>%
  mutate(NPC = factor(npc(recommend), ordered = TRUE)) %>%
  select(-recommend)

m <- model_survey(survey_sim)
scenarios <- make_scenarios(m)

NateByers/NPSdrivers documentation built on May 6, 2019, 10:12 a.m.