Hey all,
I was working on a cluster, and I stuck when I need to give numbering according to var1. So, suppose value in var1 occurs 5 times then, 5 times there should be 1 number and then if value will be a change in var2 then var2 should be increased by 1 number.
Below is an example dataset
var1 var2
Ajmer 1
Ajmer 1
Ajmer 1
Alwar 2
Alwar 2
Alwar 2
Alwar 2
Alwar 2
Alwar 2
Alwar 2
Alwar 2
Banswara 3
Banswara 3
Banswara 3
Banswara 3
Baran 4
Baran 4
Baran 4
Barmer 5
Barmer 5
Barmer 5
Barmer 5
Barmer 5
Best,
Narendra
Related Posts with Auto increment in var2 according to value of var1.
sample size calculationHello everyone, A friend of mine is asking me to calculate for her the sample size for an experiment…
deflate data using 1980 valueDear All, I found this question here (http://bbs.pinggu.org/forum.php?mod=...a=#pid55243106). The da…
Diff in Diff with different timesDear Statalisters, I am studying the following question: "What is the impact of distributing divide…
replacing missing data with mean or medianHi guys, i have a set of data (n=586) with 2 variables. in some of the variables i have 2 to 3% miss…
Help with datesDear Alll I have a data set. The Variable 'date1' is supposed to be age in years but reported thei…
Subscribe to:
Post Comments (Atom)
0 Response to Auto increment in var2 according to value of var1.
Post a Comment