Closed QWangPKU closed 6 days ago
These work much like regression formulas in R
The short answer is that it constructs a new variable for the nonlinear part of the model by evaluating the I( ) function. As an example " I ( x1 * x2 ) " would construct an interaction term between x1 and x2.
" I (- prices ) " constructs a new variable (negative prices) that is used to evaluate the micro moments.
Thank you for the explanation! This is super helpful.
Hi Jeff,
Thanks for this amazing package!
Could you explain what the operator "I()" mean. Specifically, in the case using micro moments with automobile data, what does "I(-prices)" represents, is it referring to the term "-alpha price" or "alphalog(y-p)" in the utility function? Also I still had a hard time understanding what "I(low / income)" and "I(log(fs) * fv)" stand for even after reading Petrin's paper.
If I want to apply parallel processing to estimation (not post-estimation calculation), is the syntax the same as in the case of calculating elasticity like below?
problem = pyblp.Problem(formulation, product_data)
with pyblp.parallel(2):