Let's say I have data with predictors x1, x2, x3...xn for a variable y. I have essentially imputed y using a Bayesian analysis, which means I have a posterior distribution for each value of y. To calculate a follow up model predicting y from x1 to xn while keeping uncertainty in y, I'd normally use something like the brm_multiple function from the brms package, which allows for us to calculate the same model on different values of y from the posterior distribution and then combine them into the same model at the end. Unfortunately, I have so much data that a Bayesian approach is just not feasible.
How would I do something similar with frequentist statistics? Is there a way to run a bunch of models and then combine the models at the end, or possibly have each y as a distribution in the original model, etc.?
Here's R code to generate a toy dataset that takes the form of what I'm talking about:
# Set seed for reproducibility
set.seed(42)
# Create toy data with predictors
n <- 100
x1 <- rnorm(n)
x2 <- rnorm(n, mean = 3)
x3 <- rnorm(n, mean = -2)
# Simulate posterior samples for y (e.g., 5 samples from a posterior distribution)
y_post_1 <- 2 + 1.5*x1 - 0.7*x2 + 0.5*x3 + rnorm(n)
y_post_2 <- 2 + 1.5*x1 - 0.7*x2 + 0.5*x3 + rnorm(n)
y_post_3 <- 2 + 1.5*x1 - 0.7*x2 + 0.5*x3 + rnorm(n)
y_post_4 <- 2 + 1.5*x1 - 0.7*x2 + 0.5*x3 + rnorm(n)
y_post_5 <- 2 + 1.5*x1 - 0.7*x2 + 0.5*x3 + rnorm(n)
# Combine into a data frame
toy_data <- data.frame(x1, x2, x3, y_post_1, y_post_2, y_post_3,
y_post_4, y_post_5)
# Display the first few rows of the dataset
head(toy_data)