Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65601

How to duplicate or repeat a set of values in a sequence in stata

$
0
0
Hello,

Kindly can anyone help me how I can duplicate values in sequence I want in Stata. I have data

I have data in this form I want to convert in this form
1 1
2 1
3 1
4 1
5 1
2
2
2
2
2
3
3
3
3
3 and so on


The total values will be then 25. Your cooperation is of great value.
Thanks in advance

Viewing all articles
Browse latest Browse all 65601


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>