Skip to contents

Function to get the correlation for each panel defined in the data

Usage

getCorrelationMat(panel, data, dots = FALSE)

Arguments

panel

vector identifying the panel to which each row of data belongs. Data are considered correlated within a panel and independent between panels.

data

vector of response data.

dots

(default = FALSE). Logical flag stating whether to show progress dots printed in workspace.

data(nystedA_slim) nysted$panelid<-as.numeric(nysted$unique.transect.label)

corrs<-getCorrelationMat(panel = nysted$panelid, data=nysted$response, dots = FALSE)

Author

LAS Scott-Hayward, University of St Andrews