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
Iterations in Poission RegressionI was running a code for negative binomial and poisson regression and the results were not convergin…
Multilevel modeling and density functionHello, sorry for cross-posting but i'd like to give this post more visibility. I have been asked to …
Subtracting time series and creating new groupDear Statalist members, Having extensively browsed the Statalist forums without finding an answer t…
DataSet Notes from huge DTA fileHi everyone, Any hint about reading dataset's notes embedded in a huge (>10Gb) DTA file. I used …
DataSet Notes from huge DTA fileHi everyone, Any hint about reading dataset's notes embedded in a huge (>10Gb) DTA file. I used …
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