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
xtlogit re or pooled logit?When I ran a logit model with random effects, I could reject the null of the LR test that the random…
Panel data - first differences modelI am using panel data (world bank's world development indicators). Need to create a first difference…
Can't import 2011 India district shapefileWe need a 2011 India district shapefile (N=640 districts). I found a handful around the web (e.g., S…
Matching firmsDear all, I am currently writing a code to capture the differences in earnings management between U…
Selecting the first variable without knowing it's nameHello all, I'm doing some big data cleaning for a lot of excel files, and I'm trying to figure out …
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