simulateHTS {codacore}R 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


[Package codacore version 0.0.4 Index]