Dear Stata experts,
For my master thesis, I'm figuring out how to analyse in order to measure environmental innovation patents.
I'm using IPC classes from the NBER dataset. But I struggle to prepare my data so if anyone can help me would be a blessing!
I want to keep a certain amount of different IPC classes which I use as environmental patents. But this means I need to get rid of all the other observations(patent types /IPC classes).
So I tried to do this with drop if, egen, bysort egen, but it all didn't work sadly. The tricky part is the IPC classes are string variables. I tried to use destring, but due to non-numeric observations (B01C example of a class) i can't use Destring or generate. I tried to fix this with force but this only gerenates dots, so I'm kinda lost how to proceed.
I need to sort and keep only a few specified IPC classes so I can merge that prepared data set with other data sets.
Thanks in advance and sorry if this is kind of a beginner/easy question.
Related Posts with Measuring environmental innovation patents
Problem wtih running and exporting first and second stage regressions with ivregress2 and getting the cluster standard errorHello, I am using ivregress2 to run and export the results of first and second stage regressions. I…
ROC analysis with pweights Dear Forum, I would like to do ROC analysis using a complex survey. Stata`s lroc and roctab command…
Bysort TroubleHello, I am attempting to execute a very simple command where I create a new variable for each id (…
How to use IV in a panel event study?Hi all, I am doing a panel event study with the command eventdd, and I need one IV. However, I am qu…
mvn imputation - able to get unstandardized?I use the mi estimate syntax for my mvn imputations. I find that they always provide standardized co…
Subscribe to:
Post Comments (Atom)
0 Response to Measuring environmental innovation patents
Post a Comment