Dear all,
I have a table (that results from dependency parsing) with some rows referencing to other rows.
It looks like:
Position Word Wordclass Reference
1 xxx Adj 2
2 xxx Noun 3
3 xxx Verb 0
4 xxx Noun 3
…
I have the following question: How can I generate a dummy variable that tells me whehter the row refers to a verb? In this case, observations 2 and 4 should get 1 (they refer to the third row); observations 1 and 3 should get 0.
Thanks for any suggestions!
Related Posts with Reference to other rows
How to count each binary variables and only generate one variable to include all count information?Hi there, I have a set of binary variables and each of them stands for a certain health disease (e.…
discrete-time survival analysis (xtcloglog)Hi everyone, I am running a discrete-time survival analysis about firm survival on an unbalanced pan…
Double loops in Stata?Dear All, I want to do the following: Code: local replace replace forvalues i = 2007(1)2017 { for…
interaction variable with i. operatorI want to run the following regression Code: reghdfe ABPROD BORDERLINE POST BORDERLINE_POST i.sic…
Difference-in-Difference with continuous variables and fixed effectsDear Stata friends I try to run a difference-in-difference regression with a continuous treatment (…
Subscribe to:
Post Comments (Atom)
0 Response to Reference to other rows
Post a Comment