Skip to content
Prev 221179 / 398500 Next

applying quantile to a list using values of another object as probs

"Lorenzo Cattarino" <l.cattarino at uq.edu.au> writes:
It's a little confusing, because it isn't clear why the elements of
mylist are matrices, nor why B is a matrix. I.e. why aren't these things
just dimensionless vectors? However if you really do want to ignore the
row/column information then perhaps what you're looking for is

lapply(mylist, quantile, probs=B)

[[1]]
 26.55087%  37.21239%  57.28534%  90.82078%  20.16819%  89.83897%  94.46753%  66.07978%   62.9114% 
-0.2191315  0.3738468  0.5389231  1.2277025 -0.4274793  1.1973174  1.3405621  0.6223309  0.5811310 
 6.178627%  20.59746%  17.65568% 
-1.4270686 -0.4166326 -0.4909661 

[[2]]
   26.55087%    37.21239%    57.28534%    90.82078%    20.16819%    89.83897%    94.46753% 
-0.004930323  0.072476814  0.703609732  0.925581428 -0.027300847  0.923628895  0.932833742 
   66.07978%     62.9114%    6.178627%    20.59746%    17.65568% 
 0.793329524  0.783422677 -1.028244961 -0.026313767 -0.033078300 

[[3]]
 26.55087%  37.21239%  57.28534%  90.82078%  20.16819%  89.83897%  94.46753%  66.07978%   62.9114% 
-0.1492189 -0.1040074  0.2025300  0.8161114 -0.2803999  0.7580782  1.0316644  0.3963404  0.3886679 
 6.178627%  20.59746%  17.65568% 
-0.9801188 -0.2693299 -0.3451936 

Dan
Message-ID: <87bpcdlw9m.fsf@stats.ox.ac.uk>
In-Reply-To: <96731D3F78CD4F468A44C9BBEE907A6E01313A68@UQEXMB5.soe.uq.edu.au> (Lorenzo Cattarino's message of "Tue, 18 May 2010 12:30:47 +1000")