The samples are split into four subsamples: A,B,C,D. Subsamples are then combined and compared: AB vs. CD, AC vs. BD, AD vs. BC. The results show graphs from the components of each of the 6 models.
splithalf(eem_list, comps, splits = NA, rand = FALSE, normalise = TRUE,
nstart = 10, cores = parallel::detectCores()/2, maxit = 500,
ctol = 10^(-5), ..., verbose = FALSE)
eemlist containing sample data
number of desired components
optional, list of 4 numerical vectors containing the sample numbers for A,B,C and D sample subsets
logical, splits are randomised
state whether EEM data should be normalised in advance
number of random starts
number of parallel calculations (e.g. number of physical cores in CPU)
maximum iterations for PARAFAC algorithm
Convergence tolerance (R^2 change)
additional parameters that are passed on to parafac
states whether you want additional information during calculation
data frame containing components of the splithalf models
Split data sets can be split suboptimal and cause low TCCs. Therefore, subsamples are recombined in 3 different ways and a TCC close to 1 in only one split combination per component is already a positive result. Check the split sets to check for sample independency.
# NOT RUN {
data(eem_list)
splithalf(eem_list,6,nstart=2)
# }
Run the code above in your browser using DataCamp Workspace