within_share_two_nest: Calculate Product level Within Shares for Two Layer Nest

Description Usage Arguments Value

View source: R/create_shares.R

Description

Calculate Product level Within Shares for Two Layer Nest

Usage

1
within_share_two_nest(df, mkt_share, nest_share, subnest_share)

Arguments

df

Dataframe to work with

mkt_share

Variable containing product market shares, as a character string.

nest_share

Variable containing market share of nest, as a character string.

subnest_share

Variable containing market share of subnest, as a character string.

Value

A dataframe with the outside- and nest-shares added.


lachlandeer/demandr documentation built on May 21, 2019, 12:04 p.m.