juice_cost: Compute juice drinks cost points

View source: R/prices_scores.R

juice_costR Documentation

Compute juice drinks cost points

Description

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

Usage

juice_cost(healthier_juice_drinks_price, regular_juice_drinks_price)

Arguments

healthier_juice_drinks_price

The cost of 100 percent juice drinks.

regular_juice_drinks_price

The cost of non 100 percent juice drinks.

Details

This function implements the scoring method described in Table 4.1 of Lundsford (2016). "Healthy juice" is 100 percent juice drinks, natural fruit juice with no added sugars. "Regular juice" is fruit juice with added sugar and water.

Value

The NEMS_S points associated with juice drinks cost.

Examples


healthier_juice_drinks_price <- rnorm(10,4.1,.5)
regular_juice_drinks_price <- rnorm(10,4.1,.3)



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