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
Why not infinite number of variables in Stata?Dear All, I am curious to know if there is a way to have more than 120,000 variables (ideally infin…
Endogenous variables that aren't endogenousIf you (or reviewers) suspect a variable is endogenous, and you find a valid instrument and tests sh…
Margin effects from a log-linked gamma regression (using log transformation to the dependent variable).I am analyzing the relationships between public employees per 1000 populations and federal funding a…
Mechanism Testing OLSHi there! I am new to Stata and trying to learn more about the relationship between risk and weathe…
Finding the threshold for the concave relationshipHello everyone, I am estimating a cross-country IV regression that uses internal instruments which …
Subscribe to:
Post Comments (Atom)
0 Response to Trouble Generating Variable dependant on period
Post a Comment