I want to do a regression analysis after a GMM. I have a dependent variable with three categories (classes), which differ in their posterior probabilities. That's why I included the posterior probabilities as weights in my multinomial logistic regression. I'm using multiple imputation to account for missing data in my predictor variables. Now I want to include a quadratic term for one of the predictors and am unsure how I can compare the model fit of the model without and the model with the quadratic term? As far as I know using the AIC is not possible in weighted models.
That's my code for the multinom:
models_gew_cr_quad <- list()
for(i in 1:imp_cr$m){
dat_i <- complete(imp_cr, i)
dat_long_cr <- dat_i %>%
pivot_longer(cols = starts_with("CPROB"), names_to = "class", values_to = "weight") %>%
mutate(class = factor(class, levels = c("CPROB1","CPROB2","CPROB3"), labels = c("1","2","3")))
dat_long_cr$class <- factor(dat_long_cr$class, levels = c("2","1","3"))
models_gew_cr_quad[[i]] <- multinom(class ~ x1 + x2 + x3 + x4 + x5 + x6 + x7,
data = data,
weights = weight, trace = FALSE)
}