frozen_dinners_cost: Compute frozen dinners cost points

View source: R/prices_scores.R

frozen_dinners_costR Documentation

Compute frozen dinners cost points

Description

This function takes in the cost of healthier and regular frozen dinners and compares them to return a NEMS-S score for the cost.

Usage

frozen_dinners_cost(
  healthier_frozen_dinners_price,
  regular_frozen_dinners_price
)

Arguments

healthier_frozen_dinners_price

The price of healthier option for frozen dinners.

regular_frozen_dinners_price

The price of regular fat frozen dinners.

Details

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.

Value

The NEMS-S points associated with frozen dinners price.

Examples

healthier_frozen_dinners_price <- rnorm(10,4.5,.5)
regular_frozen_dinners_price <- rnorm(10,5.1,.3)

byu-transpolab/nemsr documentation built on Feb. 10, 2023, 11:24 p.m.