Hi Family,
I have 1 categorical variable that has 3 grps( blue,yellow, green), I wanted check if the variance between only these two groups( blue and green) differs. So how do i use if condition to constraint the categorical variable to work with only the 2 groups out of the 3.
Given that;
the value label for blue=1 yellow=2 and green=3
wait= Weight of individuals
Below is the command I used but stata still generate an error.
sdtest wait , by( grps ) if grps==1 & grps==3
option if not allowedr(198);
I need your help?
Thank you.
Amidu
Related Posts with How to use If condition to restrict t test on only two groups with a categorical var that has 3 groups
Problem with excluding observationsHello, everyone! I am fairly new to Stata and I am trying to work out how to exclude some oberserva…
reshapeHi, I am trying to reshape my data. Stata says that the data is currently wide. The current data is…
Finding stock beta with a forvalues loopI am performing an event study and am trying to estimate the beta of 60 different public companies d…
IPWRA and PSMATCH, how to choose..Hi all, I have a longitudinal dataset with individuals some of which received a treatment at some t…
ivreghdfe cannot show first stage outcomeDear statalist, I am using ivreghdfe and want to know the regression in the first stage. However, s…
Subscribe to:
Post Comments (Atom)
0 Response to How to use If condition to restrict t test on only two groups with a categorical var that has 3 groups
Post a Comment