staRdom (version 1.0.3)

splithalf: Running a Split-Half analysis on a PARAFAC model

Description

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.

Usage

splithalf(eem_list, comps, splits = NA, rand = FALSE, normalise = TRUE,
  nstart = 10, cores = parallel::detectCores()/2, maxit = 10000,
  ctol = 10^(-5), ...)

Arguments

eem_list

eemlist containing sample data

comps

number of desired components

splits

optional, list of 4 numerical vectors containing the sample numbers for A,B,C and D sample subsets

rand

logical, splits are randomised

normalise

state whether EEM data should be normalised in advance

nstart

number of random starts

cores

number of parallel calculations (e.g. number of physical cores in CPU)

maxit

maximum iterations for PARAFAC algorithm

ctol

Convergence tolerance (R^2 change)

...

additional parameters that are passed on to parafac

Value

data frame containing components of the splithalf models

See Also

splithalf_plot, splithalf_tcc

Examples

Run this code
# NOT RUN {
data(eem_list)

splithalf(eem_list,6,nstart=2)
# }

Run the code above in your browser using DataLab