model_survey: Fit ordered logistic regression model to survey data

Description Usage Arguments Examples

View source: R/model_survey.R

Description

Fit ordered logistic regression model to survey data

Usage

1
model_survey(data, verbose = FALSE)

Arguments

data

A data frame of survey results with an "NPC" column (for Net Promoter Catagory). See example.

verbose

Logical indicating if you want to see output from stepAIC()

Examples

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

data(survey_sim)

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

m <- model_survey(survey_sim)

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