View source: R/prices_scores.R
frozen_dinners_cost | R Documentation |
This function takes in the cost of healthier and regular frozen dinners and compares them to return a NEMS-S score for the cost.
frozen_dinners_cost( healthier_frozen_dinners_price, regular_frozen_dinners_price )
healthier_frozen_dinners_price |
The price of healthier option for frozen dinners. |
regular_frozen_dinners_price |
The price of regular fat frozen dinners. |
This function implements the scoring method described in Table 4.1 of Lundsford (2016). "Healthier frozen dinners" have less than or equal to 9g of fat per serving (an 8-11 oz package), as written in Measure 6 in the NEMS-S Protocol.
The NEMS-S points associated with frozen dinners price.
healthier_frozen_dinners_price <- rnorm(10,4.5,.5) regular_frozen_dinners_price <- rnorm(10,5.1,.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.