I would like to find out which observations have the same content for one variable. Is there a command for this?
I would like to merge 2 data sets but I receive the message "variable FILE does not uniquely identify observations in the master data". In my master data set I have company observations.
The data set that I want to use for merging contains results of a text analysis. And this Stata file has a variable called FILE. I used files that are named Companyname_AR_year. In the variable FILE this is the same. So in order to do the merging, I generated a variable in the master data set generate FILE=Companyname+"_AR_"+string(year,"%02.0f").
They should be unique, however apparently there is a mistake.
Is it possible to find out which observations have the same name?
Thank you and best regards, Robert
Related Posts with Find observations with same content for one variable
mixed model with a baseline differencesDear all, I have a data set of 70 patient in a intervention foloow up study. 4 of the patient did d…
using rangestat to create leave one out sumsHi, I am trying to create by group sums of a variable and my data includes three variables: a distr…
Generate a MatrixHi all, I am having a problem generating a matrix from data. Suppose I have a dataset like this …
matching FrontierI wonder if anyone has attempted a Stata version of the matching Frontier program of King et al. The…
Panel data set restrictions for specific ID and time periodHello, I hope you are all safe and healthy. I have Stata version 14 and a panel data set consists o…
Subscribe to:
Post Comments (Atom)
0 Response to Find observations with same content for one variable
Post a Comment