Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quantile regression- Quantile plot for categorical variables

    Dear All.
    I am using quantile regression to estimate the impact of commercialization and household decision-making on marketing on the income of farm households.
    I employed those STATA commands.

    sqreg horticulture_income hci i.treat i.who_decide_sells age_hh educ_hh sex_hh no_adult_female no_adult_male exp_horticulture landsize_horti total_tlu dist_main_mkt_minutes dist_coop_minutes extension_freq training aggr_fertilizer_cost aggr_pesticide_cost aggr_herbicide_cost aggr_family_labor aggr_total_wage, q(0.10 0.30 0.50 0.85)

    quietly qreg horticulture_income hci treat who_decide_sells age_hh educ_hh sex_hh no_adult_female no_adult_male exp_horticulture landsize_horti total_tlu dist_main_mkt_minutes dist_coop_minutes extension_freq training aggr_fertilizer_cost aggr_pesticide_cost aggr_herbicide_cost aggr_family_labor aggr_total_wage

    grqreg hci treat who_decide_sells, ci ols olsci

    One of my interesting variables (household decision-making on marketing) (0 = men; 1 = women; 2 = joint) and treatment (0 = pure control, 1 = control; 2 = treated) are categorical variables. Do you think the STATA command "grqreg" generate the correct plot for a categorical variable?

    I really appreciate your help!

  • #2
    Hi Asmiro
    -grqreg- does not handle factor notation. So it will generate an error.
    Try -qregplot- also from ssc.
    Fernando

    Comment


    • #3
      Dear Fernando,
      Thank you so much for your prompt reply. I will try it; let me check what it will happen!

      Comment


      • #4
        Dear Fernando,
        Thank you so much for your prompt reply. I will try it; let me check what will happen!

        Comment


        • #5
          Dear Fernando,
          It works successfully! Thank you so much for your support!
          qregplot hci i.treat i.who_decide_sells, q(15 30 50 85) ols

          This command gives me a good result by showing the category explicitly!

          Comment

          Working...
          X