I have never used propensity scores for mulitnomial variables, and so I am unfamiliar with how the predicted probabilities are handled. I have a factor variable for treatment with 5 categories and I calculated a propensity score using multinom()
PSmod<- multinom(Treat~Age+BMI+Gender+Smoking+HIV,data =df)
df$PS <- predict(PSmod, type = 'probs')
This gives me a variable of which the class is "matrix" "array" and I am not sure how to work with this. How can I obtain a single probability from this matrix array for each subject so that I can model a glm adjusting for their propensity score? Thanks