dot-estimateR: RCCA tuning

.estimateRR Documentation

RCCA tuning

Description

Estimate optimized regulation parameters lambda1 and lambda2.

Usage

.estimateR(
  loginFD,
  logins,
  funcPreProc,
  querytables,
  chunk = 500L,
  mc.cores = 1,
  nfold = 5,
  grid1 = seq(0.001, 1, length = 5),
  grid2 = seq(0.001, 1, length = 5)
)

Arguments

loginFD

Login information of the FD server (one of the servers containing cohort data).

logins

Login information of servers containing cohort data.

funcPreProc

Definition of a function for preparation of raw data matrices. Two arguments are required: conns (list of Opal connections), symbol (name of the R symbol) (see datashield.assign).

querytables

Name (or a vector of two names) of the R symbol(s) to assign in the Datashield R session on each server in logins. The assigned R variable(s) will be used as the input raw data to compute covariance matrix. Other assigned R variables in func are ignored.

chunk

Size of chunks into what the resulting matrix is partitioned. Default, 500L.

mc.cores

Number of cores for parallel computing. Default, 1.

nfold

n-fold cross-validation. Default, 5.

grid1

Tuning values for lambda1.

grid2

Tuning values for lambda2.

Value

Optimal values of lambda1 and lambda2.


vanduttran/dsSSCP documentation built on Jan. 17, 2025, 1:47 a.m.