juancaros / quaidsce

Censored QUAIDS for Stata
9 stars 7 forks source link

unexpected behavior estat expenditure #2

Open matheuscanhete opened 8 months ago

matheuscanhete commented 8 months ago

Hello, everybody!

I'm currently using quaidsce to perform a demand/elasticity estimation for my masters thesis in Economics, but I found some trouble when computing the elasticities.

When I ran the command to calculate the income elasticity filtering for some varible, like so:

estat expenditure if cor_c == 1
matrix define expelas = r(elas_i)
matrix list expelas

I get the same results as if I wasn't filtering at all. It doesn't return any error message or anything. What could be the problem? (it happens to price elasticity too)

The command to estimate the model:

quaidsce w1-w4, anot(-6.100855) prices(preco_1-preco_4) expenditure(total_b) demographics(log_rfpc log_gini educ_m n_dom cor_c genero_c) nolog