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
Calculating 5-year compound annual growth rate (CAGR) with missing valuesHi All, I'm trying to calculate the 5-year compound annual growth rate, which is "(endvalue/beginni…
extracting the values of a variable as a local macro in the order that they appear in the dataHi. I'm new to Statalist. Could anyone help me with extracting the values of a variable as a local m…
combining variablesHi all, I have a relatively rudimentary question. I have a dataset with the same variable listed in…
Lasso error message "error in postselection b"Hi everyone, I encountered this error when I was running the Lasso, "error in postselection b". Co…
Panel model with fixed time effects, residuals not normally distributedHello, everyone, nice to be member of this group :-) First of all, I would like to apologize in adv…
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