Functions

compute_outside_share()

Compute Share of Outside Good

create_markets()

Create list of market identifiers.

create_shares()

Compute Share of Outside Good and Nest Shares

estimate_demand()

Estimate a Demand Model From Aggregate Market Shares

mkt_share_from_sales()

Create Market Shares from Quantity Sold

Data

analgesics

Weekly Sales of OTC Analgesics

blp_1995

Automobile Sales in the United States

eurocars

Annual Sales of Cars in Europe

jets

Annual Sales of Corporate Jets

Internal Functions

Helper functions used within the package

create_equation()

Create Regression Equation for Demand Estimation

create_lhs()

Create Left Hand Side of Regression Equation

create_fe()

Create Partial Formula for Fixed Effects

create_rhs()

Create Regression Equation for Demand Estimation

gen_nest_share()

Calculate Within Shares for First Layer Nest

gen_subnest_share()

Calculate Within Shares for Subnest Structure

gen_within_share()

Calculate Within Shares for Nesting Structure

within_share_one_nest()

Calculate Product level Within Shares for One Layer Nest

within_share_two_nest()

Calculate Product level Within Shares for Two Layer Nest