selbal.aux: The balance defined in the order its variables were selected

View source: R/Selbal_Functions.R

selbal.auxR Documentation

The balance defined in the order its variables were selected

Description

The balance defined in the order its variables were selected

Usage

selbal.aux(x, y, th.imp = 0, covar = NULL, logit.acc = "AUC",
  logt = T, maxV = 1e+10, zero.rep = "bayes")

Arguments

x

a matrix object with the information of variables (columns) for each sample (rows).

y

the response variable, either continuous or dichotomous.

th.imp

the minimum increment needed when adding a new variable into the balance, in order to consider an improvement.

covar

data.frame with the variables to adjust for (columns).

logit.acc

when y is dichotomous, the measure to compute for the correlation between y and the proposed balance adjusting for covariates. One of the following values: "Rsq" (default), "AUC" or "Tjur".

logt

a logical value indicating if the data needs to be log-transformed.

maxV

the number maximum of variables defining the balance.

Value

A data.frame with the following objects:

  • Taxa the name of the taxa added into the balance.

  • Group NUM if the variable is added into the numerator and DEN if it is added in the denominator.

Examples

# Load data set
  load("HIV.rda")
# Define x and y
  x <- HIV[,1:60]
  y <- HIV[,62]
# Run the algorithm
  Bal <- selbal.aux(x,y)

malucalle/selbal documentation built on May 31, 2024, 2:36 p.m.