simulateHTS {codacore} | R Documentation |
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.
simulateHTS(n, p, outputType = "binary", logratio = "simple")
n |
Number of observations. |
p |
Number of covariates. |
outputType |
A string indicating 'binary' or 'continuous'. |
logratio |
A string indicating 'simple', 'balance', or 'amalgamation'. |
A list containing a matrix of inputs and a vector of outputs