Hey everybody,
I’m really sad because I have a big problem with my master thesis and I don’t know how to handle it.
Hopefully, you can help me.
I have a dataset with fund returns over a specific time period. Every fund belongs to a segment.
Now, I have to calculate the percentiles for the returns for each segment and time point if the fund is bigger than 1 Mio.$.
As an example:
Segment 1 and time point 1: I have 26 returns and then I have to create a variable that shows me to which decile every return belongs.
Later, I have to compare how the funds below or above the median act…
I found the command:
bysort segment time: egen perc = pctile(ret) if tna>1000, p(10)
But I generate just missing observation...
Best wishes
Sebastian
I’m really sad because I have a big problem with my master thesis and I don’t know how to handle it.
Hopefully, you can help me.
I have a dataset with fund returns over a specific time period. Every fund belongs to a segment.
Now, I have to calculate the percentiles for the returns for each segment and time point if the fund is bigger than 1 Mio.$.
As an example:
Segment 1 and time point 1: I have 26 returns and then I have to create a variable that shows me to which decile every return belongs.
Later, I have to compare how the funds below or above the median act…
I found the command:
bysort segment time: egen perc = pctile(ret) if tna>1000, p(10)
But I generate just missing observation...
Best wishes
Sebastian
Comment