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
Help debugging error message in user generated Stata codeHello friends, I am working int Stata/SE 15.1 to replicate a user-contributed command published in …
Sum individuals' totals into a group sum?Hi statalist, I have a tricky problem in which I have a large set of individuals, with individuals b…
Adding sample size to graphsI want to add sample size for each of the subgraphs in the command below: graph bar if adoption == …
deleting words in () for each row?Dear All, I found this question here (https://bbs.pinggu.org/thread-10057724-1-1.html). The data is:…
Merging one of the rows with another within multiple rows of observationHello I have a dataset in which each identifier (ID) has multiple rows of observations, ranging fro…
Subscribe to:
Post Comments (Atom)
0 Response to Reference to other rows
Post a Comment