Dear all,

Given mypi
mypi <- c(0.1,0.2,0.2,0.1,0.3,0.4,0.4,0.4,0.4,0.2)

I want to create myfreq as follows

mypi myfreq
0.1 2
0.2 3
0.2 3
0.1 2
0.3 1
0.4 4
0.4 4
0.4 4
0.4 4
0.2 3

where myfreq is frequency of its corresponding observation.  How to do that?

Thank you,

Regards,

A. Kudus
Institute for Math Research
Univ Putra Malaysia

	[[alternative HTML version deleted]]


