Array
Above is a picture of a subset of my data. hs10 refers to a specific product being sold and m_val is a value the product takes on. What I need to do is generaet a variable that is the log difference of m_val for period 1 and 2. The problem however is that there are a number of products that don't have m_val for both periods. For those products, I want the generated value to simply be the log of m_val.
I am lost with where to start!
Related Posts with Trouble Generating Variable dependant on period
Error naming output files from macroHello, looping over a series of input files, I want to create a series of output files and name the…
Time trends in panel dataHi master, I have the following regression of panel data using fixed effects, I was wondering after…
Dropping duplicated pairs of two variablesI have a dataset which contains three variables: CityA, CityB and Dstance. See the following example…
Delete panel observations which are nonconsecutive dataI have monthly time-series data for 4435-panel ids. Time series should be for consecutive months. Ho…
convert address to coordinatesHi there - I have a list of addresses (street number, street name, county, city, zipcode) in the U.…
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Generating Variable dependant on period
Post a Comment