gemmFitRcppI: gemmFitRcppI

Description Usage Arguments Value See Also

View source: R/RcppExports.R

Description

This function is run each generation to calculate fit between weighted predictors and response based on fit.metric, (weights generated by genAlg), and criterion. Calls a number of Rcpp functions that are hidden from R.

Usage

1
  gemmFitRcppI(n, betas, data, p, kCor, correction, isTauB)

Arguments

n

double, number of observations in dataset.

betas

numeric matrix of random weights.

data

numeric matrix, dataset constructed based on original gemm.formula call. First column is criterion variable.

p

double, number of potential predictors in data.

kCor

numeric vector, penalty term for given vector of weights. Will always equal number of non-zero weights unless interactions are included.

correction

character string, names correction to tau for BIC calculation. Currently set as "knp".

isTauB

boolean to set BIC computation based on tau-a or tau-b.

Value

fit

list of named vectors for BICtau, BICr, tau, and r.

See Also

gemm for full model-fitting function, tauTest for quick Kendall's tau.


jchrszcz/gemmR documentation built on May 18, 2019, 10:24 p.m.