add_aspre_interactions {OptHoldoutSize} | R Documentation |
Add interaction terms corresponding to ASPRE model
Description
Add various interaction terms to X. Interaction terms correspond to those in ASPRE.
Usage
add_aspre_interactions(X)
Arguments
X |
data frame |
Value
New data frame containing interaction terms.
Examples
# Load ASPRE related data
data(params_aspre)
X=sim_random_aspre(1000,params_aspre)
Xnew=add_aspre_interactions(X)
print(colnames(X))
print(colnames(Xnew))
[Package OptHoldoutSize version 0.1.0.0 Index]