simulateHTS: simulateHTS

View source: R/simulations.R

simulateHTSR Documentation

simulateHTS

Description

This function simulates a set of (x, y) pairs. The covariates x are compositional, meaning they only carry relative information. The response y is a binary indicator. The rule linking x and y can be a balance or an amalgamation.

Usage

simulateHTS(n, p, outputType = "binary", logratio = "simple")

Arguments

n

Number of observations.

p

Number of covariates.

outputType

A string indicating 'binary' or 'continuous'.

logratio

A string indicating 'simple', 'balance', or 'amalgamation'.

Value

A list containing a matrix of inputs and a vector of outputs


egr95/R-codacore documentation built on April 17, 2023, 7:45 p.m.