Hi guys,
this sounds maybe easy, but I'm finding difficulties in doing this task.
I have a population of 175 patients where 61 (var1) had a special treatment.
We performed clinical follow-up for every patient (30 variables), where I want to know right now one specific (var2).
Now I would like to know the specific follow-up variable (var2) for that specific subset of population (var1). var1 is a simple No/Yes variable, whereas var2 is a 4 outcome variable (no angina, CCS 1, CCS 2 and CCS 3)
How can I do it?
I tried with IF but I believe my syntax is wrong.
Thank you very much for your help
Related Posts with Tabulating one variable IF another variable is true
A numerical representation of distance from a regression line?Hello Am a novice Stata user/ statistician. I have created a two way scatter of aggregated travel d…
Creating lagged variables with pooled cross sectional dataI am working with a dataset that contains student grade observations in a variety of subjects, in di…
Interpreting Interaction Term CoefficientsDear Stata Users, I intend to study the relationship between ethnicity and COVID-19 on income. I c…
Selecting a subset of ordered variables without typing them manuallyDear all, I am trying to execute a fairly simple operation: Code: egen duration_desk=rowtotal(t_*…
Changing a binary policy variable shifting it to next year for repeated cross section data I've enlisted policy as a binary variable which I need to take 1 year forward. Like in my data for …
Subscribe to:
Post Comments (Atom)
0 Response to Tabulating one variable IF another variable is true
Post a Comment