I have a vector of 365 data values, each follows its own normal distribution. I have a vector of averages and a diagonal matrix as of standard deviations. I would like to get quantiles (0.1,0.2,...0.9) from these data. I used qmvnorm from mvtnorm package and it didn't work out. I am wondering if there is any other way, maybe using a loop?
Edit note: Pasting from additional material from the OP that was then deleted.
Sorry. To clarify, I have a vector of the average (365 values in total) and 365x365 matrix of standard deviations. I want to compute quantiles for each average. I use qmvnorm(0.1,mean=sun.base,sigma=sun.std)
to get 10th quantile. I was expecting the result to be a vector of 365 values. For my data it returns as follows, which is not the output I need.
$quantile [1] 9.634588
$f.quantile [1] -6.997342e-06 attr(,"error") [1] 0 attr(,"msg") [1] "Normal Completion"
$iter [1] 10
$estim.prec [1] 6.103516e-05