I am new on this blog. Data :
weight month
127 3
105 2
96 4
117 4
97 3
148 3
135 1
117 3
131 2
100 3
133 4
105 4
118 3
109 4
138 3
129 2
120 2
139 3
120 4
103 1
133 3
98 1
133 1
138 4
149 1
124 4
125 3
127 3
149 2
142 2
103 1
113 4
141 4
124 3
102 2
114 1
99 4
114 3
116 4
133 4
104 3
149 1
112 3
123 3
135 3
106 2
97 1
125 1
142 3
I want to simultaneously 4 quantile regressions under different conditions (for the same sample).
qreg (weight if month ==1, quantile(0.75)) ///
(weight if month ==2, quantile(0.75)) ///
(weight if month ==3, quantile(0.75)) ///
(weight if month ==4, quantile(0.75))
Error message
parentheses unbalanced
r(132);
`
I need to run these regressions simultaneously for statistical tests.
Otherwise, to test the inequality of my quantiles, is it better to perform this ? according to this post
qreg weight if month ==1, quantile(.75)
qreg weight if month ==2, quantile(.75)
and then building a Z test based on the coefficients (_b[cons]
) of both regressions and their standard errors?
I guess, this will follow a the critical values of Z table?