HW3

HW3 for Haoyan

Haoyan Xiang
2022-01-02

Halloween Candy Project

For the final project, I will be using the Halloween Candy dataset from Kaggle. https://www.kaggle.com/fivethirtyeight/the-ultimate-halloween-candy-power-ranking/code?datasetId=3732&language=R

  competitorname chocolate fruity caramel peanutyalmondy nougat
1      100 Grand         1      0       1              0      0
2   3 Musketeers         1      0       0              0      1
3       One dime         0      0       0              0      0
4    One quarter         0      0       0              0      0
5      Air Heads         0      1       0              0      0
6     Almond Joy         1      0       0              1      0
  crispedricewafer hard bar pluribus sugarpercent pricepercent
1                1    0   1        0        0.732        0.860
2                0    0   1        0        0.604        0.511
3                0    0   0        0        0.011        0.116
4                0    0   0        0        0.011        0.511
5                0    0   0        0        0.906        0.511
6                0    0   1        0        0.465        0.767
  winpercent
1   66.97173
2   67.60294
3   32.26109
4   46.11650
5   52.34146
6   50.34755

This dataset contains information about different Halloween candies such as whether the candy has chocolate, caramel, peanuts, etc. and most importantly sugar, price, and win percentile. A higher sugar percentile would indicate that the candy has relatively more sugar in it.

Potential research questions:

Distill is a publication format for scientific and technical writing, native to the web.

Learn more about using Distill for R Markdown at https://rstudio.github.io/distill.

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Xiang (2022, Jan. 3). Data Analytics and Computational Social Science: HW3. Retrieved from https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomjamesxiang11852511/

BibTeX citation

@misc{xiang2022hw3,
  author = {Xiang, Haoyan},
  title = {Data Analytics and Computational Social Science: HW3},
  url = {https://github.com/DACSS/dacss_course_website/posts/httpsrpubscomjamesxiang11852511/},
  year = {2022}
}