Dear all,
I'm estimating a translog function of the following basic form:
With y? being the output quantities, w? being the input prices, and TOC being the total operating cost.
I then want to calculate the marginal cost. I know that I could do it manually by taking the first derivate and using the estimated coefficients. However, I'm estimating many different specifications of the cost function. Therefore, I was wondering if there is a way to use a Stata command. I need to store the marginal cost of every individual in a variable. Due to the interaction terms, the marginal cost will be different for every individual. The standard output of -margins, dydx(ln_y?)- is the average marginal effect over the entire sample, but I need to have it separately.
I appreciate any suggestions. Thank you!
Best wishes,
Sebastian
I'm estimating a translog function of the following basic form:
Code:
reg ln_TOC ln_w1 ln_w2 c.ln_y1##c.ln_y2##c.ln_y3
I then want to calculate the marginal cost. I know that I could do it manually by taking the first derivate and using the estimated coefficients. However, I'm estimating many different specifications of the cost function. Therefore, I was wondering if there is a way to use a Stata command. I need to store the marginal cost of every individual in a variable. Due to the interaction terms, the marginal cost will be different for every individual. The standard output of -margins, dydx(ln_y?)- is the average marginal effect over the entire sample, but I need to have it separately.
I appreciate any suggestions. Thank you!
Best wishes,
Sebastian
Comment