[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: saving values from _pctile
I am trying to find the 65th percentile of a variable called relemp using the _pctile and the centile command. Bu they seem to be giving different results. I am not sure if I am wrongly interpreting the function of these two different commands. I typed:
centile relemp if year==1984, centile(65)
_pctile relemp, pc(65)
The reason I am using the second command is because I have a big panel and wish to obtain the 65th percentile for each year of the panel, save them in a new variable and use them later on. I will write a loop for that eventually but want to make sure why X is different from the result displayed in the centile command.
Can someone enlighten me please?
Many thanks in advance
* For searches and help try: