R/create_shares.R
within_share_one_nest.Rd
Calculate Product level Within Shares for One Layer Nest
within_share_one_nest(df, mkt_share, nest_share)
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. |
A dataframe with the outside- and nest-shares added.