I have been trying to look for Stata equivalent of this SPSS filter creation
" USE ALL.
COMPUTE filter_$=(PT = 0 & impval > 0 & PRICE >= 10000 & VI = "I" & AYB < 2020 & AR="A" &
ANY(IMP,1,3,4,5,8,9,50,51) & XDATE.YEAR(SALEDT)=2019 & INSTR = "WD").
VARIABLE LABELS filter_$ 'PT = 0 & impval > 0 & PRICE >= 10000 & VI = "I" & AYB < 2020 & AR="A" '+
'& ANY(IMP,1,3,4,5,8,9,50,51) & XDATE.YEAR(SALEDT)=2019 & INSTR = "WD" (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE." Any help would be appreciated
Related Posts with Filtering in Stata
Interpret predict probability Please how do you get to interpret the predict probability of an outcome? holding all other variabl…
Correlated data and structural equation modellingI am trying to examine a cross-lagged model with twin data. Without taking into account the correlat…
OLS Regression and Fixed Effects ModelHi everyone, I was just wondering if anyone could explain the difference between using an OLS regre…
How to conclude significance of moderation effects?I want to explore moderating effects of m1. I also have another moderator m2, and here are the two c…
Doubt about absorb() in reghdfeHi everyone! I am currently working with a rather big dataset (135mm observations) and I need to ru…
Subscribe to:
Post Comments (Atom)
0 Response to Filtering in Stata
Post a Comment