Hello everyone,
I need help with making a new Id that will solve my table so basically, I have data that has
Bank ID which is the bank number
Before, During after which variables that did take 0 for no and 1 for yes
Ticker which is the name of the company
this new ID I want it
If ticker Apple has a value of 1 in before and value of 1 after for the same Bank ID (score 1 In result)
If ticker Apple has a value of 1 in before and value of 0 after for the same company ID (score 0 In result)
This is the table before
Array
and this is what I want it to look like
Array
what Is the best way to do it in stata since manually will take a lot of time
Related Posts with How to make A new Id's
Choosing between xtpoisson and xtreg for a non-poisson variableDear Forum, I have a panel dataset of US imports from 130 exporters over 48 years. I am running two…
What is the difference between corr() and cov() with panel data?When is it more appropriate to use cov() vs corr() for the residual structures for panel data? Exam…
Hausman test interpretationSo today i made a Hausman test. But i am not sure how to interpret my results. Can you help me? Arra…
Modifying a variableHello, I have an education variable called educ and the variable has 5 items: 1-less than high scho…
Using foreach on for a subset of the dataHello, I am trying to replace missing values of ptfidelity_9_ - ptfidelity_11_ below with 0 Code: f…
Subscribe to:
Post Comments (Atom)
0 Response to How to make A new Id's
Post a Comment