The FLQuantPoint class summarizes the contents of an FLQuant object with multiple iterations along its sixth dimension using a number of descriptive statistics.

FLQuantPoint(object, ...)

# S4 method for missing
FLQuantPoint(..., units = "NA")

# S4 method for FLQuant
FLQuantPoint(object, ..., units = "NA")

Arguments

object
Input numeric object
...
Additonal arguments

Details

An object of this class has a set structure along its sixth dimension (iter), which will always be of length 5, and with dimnames mean, median, var, uppq and lowq. They refer, respectively, to the sample mean, sample median, variance, and lower (0.25) and upper (0.75) quantiles.

Objects of this class wil be typically created from an FLQuant. The various statistics are calculated along the iter dimension of the original FLQuant using apply.

Slots

.Data
The main array holding the computed statistics. array.
units
Units of measurement. character.

Accesors

mean,mean<-:
'mean' element on 6th dimension, arithmetic mean.
median,median<-:
'median' element on 6th dimension, median.
var,var<-:
'var' element on 6th dimension, variance.
lowq,lowq<-:
'lowq' element on 6th dimension, lower quantile (0.25 by default).
uppq,uppq<-:
'uppq' element on 6th dimension, upper quantile (0.75 by default).
quantile:
returns the 'lowq' or 'uppq' iter, depending on the value of 'probs' (0.25 or 0.75).

Constructor

Inputs can be of class:

FLQuant:
An FLQuant object with iters (i.e. dim[6] > 1)

Validity

iter:
iter dimension is of length 5.
Dimnames:
iter dimnames are 'mean', 'median', 'var', 'uppq' and'lowq'

See also

FLQuant

Examples

flq <- FLQuant(rnorm(2000), dim=c(10,20,1,1,1,200)) flqp <- FLQuantPoint(flq) summary(flqp)
#> An object of class "FLQuantPoint" with: #> dim : 10 20 1 1 1 5 #> quant: quant #> units: NA #> #> 1st Qu.: -0.6351078 #> Mean : -0.002424986 #> Median : 0.003465182 #> Var : 0.8757781 #> 3rd Qu.: 0.6263367
mean(flqp)
#> An object of class "FLQuant" #> , , unit = unique, season = all, area = unique #> #> year #> quant 1 2 3 4 5 6 #> 1 0.0557503 0.0678672 0.2027561 0.2379575 0.2599348 0.0573376 #> 2 -0.1267495 -0.3916230 -0.2501393 0.1766358 0.3501232 0.1818704 #> 3 0.5679519 -0.1183538 0.1879793 -0.0546625 0.0544380 0.2487038 #> 4 -0.2414080 -0.1574923 -0.2803829 0.2892275 -0.0467780 -0.9016503 #> 5 -0.7429381 0.7716159 0.2651606 0.0901614 -0.6764376 0.0889035 #> 6 0.1256821 0.3574765 0.5923132 -0.6155751 0.3497929 0.1279586 #> 7 0.5600912 -0.1870226 -0.5559914 0.1109909 -0.0463142 0.0866635 #> 8 -0.2653885 0.0080206 -0.3548301 0.5012216 -0.4699442 -0.2193468 #> 9 0.0791561 -0.1762477 -0.0976516 0.1685918 -0.2327869 0.0328683 #> 10 0.3803264 -0.4632010 -0.1345625 -0.2025044 -0.1041000 -0.0697064 #> year #> quant 7 8 9 10 11 12 #> 1 0.2398112 -0.2838461 -0.1376887 0.4815861 -0.3247162 0.0746967 #> 2 -0.4983894 -0.3771135 -0.1031619 0.2868086 0.2030155 0.1583695 #> 3 -0.7338181 0.1739352 0.4543410 -0.3616084 -0.0707997 0.7275466 #> 4 -0.2939057 -0.6742085 -0.0089104 0.2632663 0.0335199 -0.2353319 #> 5 0.2447180 0.4216076 -0.4102999 0.1339917 0.1643000 0.6891331 #> 6 0.1001412 0.0215572 -0.4005390 0.2115749 -0.3442878 -0.0959420 #> 7 0.1871252 -0.2498568 -0.3705473 -0.0447523 0.7189401 0.0065091 #> 8 0.1806579 0.2251630 -0.0948781 -0.8044873 0.5158847 -0.1756279 #> 9 -0.0684719 0.4531745 0.2727724 -0.0820192 -0.1395915 0.4557572 #> 10 0.5655078 0.1403470 -0.2791996 -0.1713160 0.1590137 -0.0330757 #> year #> quant 13 14 15 16 17 18 #> 1 0.1313720 0.1722425 -0.4237508 -0.1055291 0.3621089 0.0578804 #> 2 0.3401022 -0.1038378 -0.2615694 -0.1959111 0.2530755 -0.4546731 #> 3 0.0660074 0.0223479 -0.3947605 0.4434082 0.4543811 0.0859872 #> 4 -0.5558373 0.0806293 0.1407984 -0.3064200 -0.0327002 -0.5713972 #> 5 -0.0663358 -0.0468931 -0.0284267 -0.6055961 0.5803243 -0.2179816 #> 6 -0.0406329 -0.3854810 -0.1238765 -0.0644116 -0.1117494 0.6012382 #> 7 0.0022068 0.1289660 0.0476673 -0.0822757 -0.3012638 -0.3764278 #> 8 -0.2328320 -0.1282122 -0.5382593 0.4113241 -0.1529698 0.0186342 #> 9 0.2205371 -0.3005079 0.1186720 0.2854136 0.4636235 -0.2739490 #> 10 -0.0960642 -0.1967660 -0.1057959 0.3498726 0.2653358 -0.0713247 #> year #> quant 19 20 #> 1 -0.6144307 0.4090159 #> 2 -0.2574728 0.4518798 #> 3 0.0122205 -0.2089001 #> 4 0.2737155 0.2250663 #> 5 0.3897354 -0.6584693 #> 6 0.5874343 0.0018123 #> 7 0.0090594 -0.2669614 #> 8 0.6424364 0.2076196 #> 9 0.3149482 -0.4017865 #> 10 -0.1528830 -0.1468953 #> #> units: NA
var(flqp)
#> An object of class "FLQuant" #> , , unit = unique, season = all, area = unique #> #> year #> quant 1 2 3 4 5 6 7 8 9 #> 1 1.17946 2.10623 1.00046 0.99777 0.85987 0.83849 0.60420 0.44464 0.85273 #> 2 0.53152 0.91068 1.47131 0.78664 1.04533 0.39329 0.72750 0.40592 0.50967 #> 3 1.21029 0.86152 1.19944 0.71828 1.68064 0.99619 0.67856 0.59388 1.68751 #> 4 0.86046 0.72181 0.61311 0.92156 0.56360 0.77499 1.08821 0.49857 0.47007 #> 5 1.65139 0.81440 0.78374 0.64641 0.67555 1.36363 1.01236 0.54642 1.12680 #> 6 0.81191 0.77126 0.47318 1.20167 0.58739 0.66518 1.05958 1.09132 0.90295 #> 7 1.11071 1.52695 1.85508 0.67090 0.87846 1.46217 1.26932 0.86811 1.04109 #> 8 0.55864 0.71440 1.52487 1.06004 0.42838 0.28333 0.62225 0.43208 0.35558 #> 9 1.31907 2.31526 0.98161 1.19504 1.29478 1.17252 0.79482 0.40158 0.63640 #> 10 1.59873 0.50549 1.37048 0.84211 0.54560 0.83634 1.49259 0.35449 0.60787 #> year #> quant 10 11 12 13 14 15 16 17 18 #> 1 0.29355 0.26309 0.27634 0.60771 0.79621 1.63940 0.88691 0.51123 1.63799 #> 2 1.17152 0.81282 1.48042 0.52596 1.04651 0.36034 1.23844 1.41387 0.22608 #> 3 0.76116 0.86756 1.07111 0.38091 0.67335 0.90853 0.92596 0.57534 0.83808 #> 4 0.44476 1.13840 0.64037 1.43631 1.03877 0.88779 0.42765 0.99883 0.41300 #> 5 0.85313 0.90432 0.79924 0.56208 0.54668 0.92458 0.92969 0.43479 0.58869 #> 6 0.41266 1.04078 1.25037 0.36826 1.22218 1.42068 1.57983 1.17840 1.66722 #> 7 0.22727 0.18600 1.33711 0.25213 0.31111 1.31866 0.95269 0.67165 1.18418 #> 8 1.02373 1.49265 0.29245 0.19758 0.86757 0.57123 1.12065 0.75441 1.25795 #> 9 0.62817 0.66120 0.93625 0.74667 0.82656 1.40559 0.71728 0.78792 0.63536 #> 10 0.76543 0.94815 0.48245 1.12609 0.54842 0.55918 1.02132 0.75303 1.02977 #> year #> quant 19 20 #> 1 0.54785 0.97293 #> 2 1.04596 1.08007 #> 3 0.35410 1.12158 #> 4 0.49325 1.02822 #> 5 1.28702 0.79902 #> 6 1.66330 0.79292 #> 7 0.63143 0.75829 #> 8 0.58105 0.58888 #> 9 1.84698 0.56783 #> 10 0.51800 0.66261 #> #> units: NA
rnorm(200, flqp)
#> An object of class "FLQuant" #> iters: 200 #> #> , , unit = unique, season = all, area = unique #> #> year #> quant 1 2 3 4 #> 1 0.0776112(1.159) -0.0956547(1.382) 0.2646168(1.048) 0.0778698(0.877) #> 2 -0.0193558(0.761) -0.3689892(0.916) -0.3442973(1.375) 0.0464255(0.960) #> 3 0.4864069(1.127) -0.1100107(0.925) 0.2499902(1.031) -0.0679822(0.825) #> 4 -0.1426638(0.766) -0.0646086(0.957) -0.2877036(0.800) 0.2325914(0.906) #> 5 -0.8199031(1.422) 0.7294364(0.988) 0.3283719(0.899) 0.0185545(0.781) #> 6 0.1892370(0.970) 0.3722498(0.838) 0.4647289(0.687) -0.5586744(1.154) #> 7 0.4561867(0.967) -0.2337968(1.303) -0.5568870(1.390) 0.0977611(0.755) #> 8 -0.2913654(0.756) -0.0954785(0.784) -0.3908526(1.335) 0.3717227(1.002) #> 9 0.0371290(1.389) -0.2554852(1.505) -0.0228999(1.053) 0.1533555(1.113) #> 10 0.3810365(1.266) -0.5178360(0.769) -0.2243746(1.097) -0.2164388(0.970) #> year #> quant 5 6 7 8 #> 1 0.4534435(1.077) 0.0115560(0.908) 0.1979044(0.806) -0.4252387(0.726) #> 2 0.3588288(1.015) 0.2382162(0.539) -0.3909132(0.878) -0.2806483(0.728) #> 3 0.1814615(1.322) 0.4436934(1.010) -0.6526968(0.862) 0.3021553(0.826) #> 4 -0.0608337(0.728) -1.0274742(1.003) -0.3993509(1.160) -0.6695970(0.657) #> 5 -0.5317170(0.776) 0.0318012(1.064) 0.3563199(1.057) 0.3730430(0.784) #> 6 0.3311108(0.673) 0.0891955(0.829) 0.1226792(1.033) 0.0325358(0.934) #> 7 -0.0050713(0.850) -0.0561170(1.329) 0.1376004(1.096) -0.2313807(1.087) #> 8 -0.5640992(0.711) -0.1351802(0.549) 0.1772635(0.707) 0.0871993(0.575) #> 9 -0.3714754(1.054) 0.0272221(1.193) -0.0636486(0.888) 0.2711601(0.541) #> 10 -0.1494818(0.692) -0.1350879(0.940) 0.6190104(1.328) 0.1875547(0.622) #> year #> quant 9 10 11 12 #> 1 -0.1800676(0.874) 0.4327979(0.511) -0.3505750(0.441) 0.0176980(0.582) #> 2 -0.2569337(0.606) 0.2563208(1.064) 0.2910095(0.867) 0.1146450(1.095) #> 3 0.4372214(1.216) -0.2669956(0.869) -0.0128439(0.955) 0.7274475(1.020) #> 4 -0.1057782(0.751) 0.2512623(0.661) 0.0116544(1.045) -0.3120538(0.887) #> 5 -0.3521758(1.202) 0.1195697(0.883) 0.0286973(0.922) 0.6470707(1.023) #> 6 -0.3996794(0.977) 0.2591544(0.665) -0.5506444(1.079) -0.1413804(1.209) #> 7 -0.5749095(0.900) -0.0632939(0.459) 0.7780532(0.428) -0.1085899(1.320) #> 8 -0.1098078(0.570) -0.9270514(0.963) 0.6710906(1.327) -0.1767238(0.591) #> 9 0.3245417(0.697) -0.1160167(0.704) -0.2595247(0.857) 0.5267236(0.875) #> 10 -0.2719875(0.812) -0.2504630(0.839) 0.0805001(0.895) -0.0595326(0.651) #> year #> quant 13 14 15 16 #> 1 0.1891921(0.670) 0.2766953(0.852) -0.4308786(1.224) -0.0790290(1.047) #> 2 0.2584053(0.679) -0.0676164(1.078) -0.2485520(0.553) -0.2225320(1.095) #> 3 0.0835398(0.593) -0.0201944(0.844) -0.3848645(0.982) 0.4228538(0.897) #> 4 -0.3625162(1.252) 0.2285478(1.047) 0.1779387(1.033) -0.4626882(0.710) #> 5 -0.1287288(0.834) -0.0883405(0.701) -0.0434710(1.060) -0.5592629(1.039) #> 6 -0.0904098(0.668) -0.2845121(1.099) -0.1001720(1.259) 0.0062344(1.279) #> 7 -0.0275727(0.484) 0.0863420(0.583) 0.1104114(1.162) -0.1518161(1.001) #> 8 -0.2367531(0.455) -0.1040541(0.841) -0.5639225(0.774) 0.4031249(1.001) #> 9 0.2694301(0.897) -0.3519979(1.055) 0.0052608(1.221) 0.3392432(0.843) #> 10 -0.2151205(1.159) -0.2894336(0.724) -0.0499776(0.706) 0.4580860(0.968) #> year #> quant 17 18 19 20 #> 1 0.3680786(0.716) -0.0606898(1.114) -0.6129439(0.727) 0.3781251(0.998) #> 2 0.0984705(1.062) -0.4118687(0.523) -0.5158144(1.160) 0.4984754(0.918) #> 3 0.4538873(0.877) 0.0629188(0.795) 0.0037511(0.636) -0.1562614(1.058) #> 4 -0.1762167(1.006) -0.5117604(0.621) 0.3179643(0.633) 0.1437906(0.917) #> 5 0.5961918(0.659) -0.2692901(0.732) 0.2072068(1.213) -0.7551343(0.877) #> 6 -0.2500926(1.191) 0.3973852(1.487) 0.6877875(1.315) 0.0163132(0.838) #> 7 -0.2485717(0.856) -0.5039966(1.100) 0.0563598(0.772) -0.3294440(0.804) #> 8 -0.0886923(0.805) 0.1017732(1.215) 0.6669485(0.870) 0.2403120(0.807) #> 9 0.5206026(0.968) -0.3530520(0.816) 0.3527771(1.390) -0.3447221(0.754) #> 10 0.2098494(0.871) -0.1255225(0.935) -0.1179385(0.738) -0.1490039(0.851) #> #> units: NA