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
Exporting Results to Excel: value labels instead of names, categorical variableHello, I am new to Stata and would really appreciate your help! I am trying to export my result to…
Fixed effects panel data regression with forwarded dependent variableHi all, I have a panel dataset with firms like the one I am posting here: Code: * Example genera…
bootstrap weng wrong.Dear All, I tried to write a code for test equality of coefficients from two regressions by bootstra…
labelling with localHi , I have following data set : ----------------------- copy starting from the next line ----------…
Creating a variable by finding correlations of two other variablesHi everyone, I am trying to create a variable [pre], the value of which will be the correlation of …
Subscribe to:
Post Comments (Atom)
0 Response to Reference to other rows
Post a Comment