powered by
Simulate data for illustrate the performance of prediction intervals for random forests
sim_data(n = 500, p = 10, rho = 0.6, predictor_dist = "correlated", mean_function = "nonlinear-interaction", error_dist = "homoscedastic")
Sample size
Number of features
Correlation between predictors
Distribution of predictor: "uncorrelated", and "correlated"
Mean function: "linear", "nonlinear", and "nonlinear-interaction"
Distribution of error: "homoscedastic", "heteroscedastic", and "heavy-tailed"
a data.frame of simulated data
# NOT RUN { train_data <- sim_data(n = 500, p = 10) test_data <- sim_data(n = 500, p = 10) # }
Run the code above in your browser using DataLab