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
Dynamic panel gravity model with PPMLDear Joao Santos Silva Tom Zylkin , Currently, I'm doing an investigation about the effects of Free…
Generate a list of unique firmsHi, I have a panel data and would like to generate a list of unique firms (e.g. gvkey), preferable e…
Saving the coefficients of the time fixed effect and averaging itDear Statalists, I would like to make out of sample predictions based on a two way fixed effect mod…
"0 (empty)" during logistic regressionDear Forum, I am having a problem with a logistic regression that uses an interaction variable, dum…
dropping observations if 2 strings are emptyHi I want to drop all observations which don't have date in 2 string variables: for example if A =…
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