compo: Composite

Description Usage Arguments Details Value References

Description

Compute a composite from a 3D array, and perform student t-test for unequal varianz

Usage

1
2
  composite(data_array, id_time, id_clim = 'All',
            test = TRUE)

Arguments

data_array

3D array of the data with dims lat_lon_time (default) or lon_lat_time (see lat_lon)

id_time

numeric vector of indexes of the dates to composite

id_clim

numeric vector of indexes of the dates to use as reference/climatology, default ='All' use all dates to create the climatology. If NULL, only the mean field of id_time is compute

test

logical, should the anomalies be check? default TRUE

Details

composite compute the composite of the data, this is the mean value for specific indexes minus the mean value for a reference period (climatology).

Value

Returns a list with the anomalies, and the test done for 90, 95 and 99 percent confident level.

compo

numeric matrix of anomalies

test90

logical matrix TRUE stays for significant at 90 percent confident level

test95

logical matrix TRUE stays for significant at 95 percent confident level

test99

logical matrix TRUE stays for significant at 99 percent confident level

References

- Ruxton, G. D. (2006). The unequal variance t-test is an underused alternative to Student's t-test and the Mann–Whitney U test. Behavioral Ecology, 17(4), 688-690.


santiagoh719/ClimFunctions documentation built on June 2, 2020, 12:05 a.m.