powered by
Add various interaction terms to X. Interaction terms correspond to those in ASPRE.
add_aspre_interactions(X)
New data frame containing interaction terms.
data frame
# 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))
Run the code above in your browser using DataLab