View source: R/prices_scores.R
wieners_cost | R Documentation |
This function takes in the cost of lean and regular fat weiners and compares them to return a NEMS-S score for the cost.
wieners_cost(lean_wieners_price, regular_wieners_price)
lean_wieners_price |
The price of hot dogs with less fat. |
regular_wieners_price |
The price of normal fat hot dogs. |
This function implements the scoring method described in Table 4.1 of Lundsford (2016). "Fat free hot dogs" have 0 grams of fat per serving, and "light hot dogs" have less than or equal to 7 grams of fat per serving.
The NEMS-S points associated with wiener price.
lean_wieners_price <- rnorm(10,2.5,.3) regular_wieners_price <- rnorm(10,1.4,.5) wieners_cost(lean_wieners_price,regular_wieners_price)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.