Hey guys,
I would like to know how I can calcute the mean, standard deviation and median of some variables over all funds in my dataset.
My dataset looks like the following:
FundID StockID date fund_monthly_return
1 383 31july2008 0.22
3 232 28january2007 -0.37
2 239 27february2009 0.24
1 483 2january2005 0.11
1 483 2february2004 0.37
So I do not know how to calculate the return over all funds because if I simply calculate the mean of the return then it would be the return over all observations.
What would be correct? I also want to do this with the age of the funds but the age gets higher over time, sol what should I do here?
Thanks, John.
I would like to know how I can calcute the mean, standard deviation and median of some variables over all funds in my dataset.
My dataset looks like the following:
FundID StockID date fund_monthly_return
1 383 31july2008 0.22
3 232 28january2007 -0.37
2 239 27february2009 0.24
1 483 2january2005 0.11
1 483 2february2004 0.37
So I do not know how to calculate the return over all funds because if I simply calculate the mean of the return then it would be the return over all observations.
What would be correct? I also want to do this with the age of the funds but the age gets higher over time, sol what should I do here?
Thanks, John.
Comment