View source: R/prices_scores.R
chips_cost | R Documentation |
This function takes in the cost of lowfat and regular chips and compares them to return a NEMS-S score for the cost.
chips_cost(lowfat_chips_price, regular_chips_price)
lowfat_chips_price |
The price of lowfat chips. |
regular_chips_price |
The price of regular chips. |
This function implements the scoring method described in Table 4.1 of Lundsford (2016). "Lowfat chips" contain less than or equal to 3g of fat per 1oz serving.
The NEMS-S points associated with chips cost.
lowfat_chips_price <- rnorm(10,2.5,.5) regular_chips_price <- rnorm(10,2.8,.3) chips_cost(lowfat_chips_price, regular_chips_price)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.