# 代做homework | R Markdown | assignment代做 | R代写 | 统计代写 | sta代写 – Homework # 5

### Homework # 5

2022/3/27 19:06 homework #

### Homework # 5

``````For this  assignment (and all assignments in this class), you are to turn in your work as an R Markdown document.
Submit your solutions to GradeScope in PDF format.
``````

#### Problem 1

``````For this problem we are going to use the following dataset of sales of season passes to an amusement park in
response to advertising offers. The dataset contains a yes/no attribute indicating whether or not the recipient of
the offer purchased a pass (Pass), an attribute (Promo) indicating whether or not the offer was part of a bundle
that included parking, and an attribute indicating how the offer was delivered (Channel).
``````
``````season_pass = read.csv("season_pass.csv")
season_pass\$Channel = factor(season_pass\$Channel, levels=c("Email", "Mail", "Park"))
season_pass\$Promo = factor(season_pass\$Promo, levels=c("NoBundle", "Bundle"))
season_pass\$Pass = factor(season_pass\$Pass, levels=c("NoPass", "YesPass"))
head(season_pass)
``````
``````Channel
<fct>
``````
``````Promo
<fct>
``````
``````Pass
<fct>
``````
``````1 Mail Bundle YesPass
``````
``````2 Mail Bundle YesPass
``````
``````3 Mail Bundle YesPass
``````
``````4 Mail Bundle YesPass
``````
``````5 Mail Bundle YesPass
``````
``````6 Mail Bundle YesPass
``````
``````6 rows
``````
``````summary(season_pass)
``````
``````## Channel Promo Pass
## Email: 633 NoBundle:1482 NoPass :
## Mail :1328 Bundle :1674 YesPass:
## Park :
``````
``````1A) We first want to determine if making the offer as part of a bundle increases the odds that the customer will
purchase the pass. Construct a simple logistic regression model (one predictor) to test this. How much does
including the offer in a bundle increase the odds that it will be purchased?
``````
``````xxx
``````

2022/3/27 19:06 Homework #

https://blackboard.usc.edu/bbcswebdav/pid-8583426-dt-content-rid-64340350_2/courses/20221_ise_535_mm-bw/Module-5-Homework.html 2 / 2

``````1B) Now we would like to determine the effect of the channel which the offer is delivered through (email, mail, or
in park). Construct a multiple logistic regression model to test this. What does this model tell us about the
influence of the channel and of including it in a bundle?
``````
``````xxx
1C) Is there a statistically significant interaction effect between Promo and Channel?
``````
``````xxx
``````