R cplot multinom example1/12/2024 ![]() ![]() There, one blogger suggested that getting $p$-values from the summary result of multinom is pretty easy, by first getting the $t$values as follows: pt(abs(summary1$coefficients / summary1$standard.errors), df=nrow(Data)-10, lower=FALSE) Yesterday I came across a post where the author put forward a similar issue regarding estimation of $p$-values for coefficients ( How to set up and estimate a multinomial logit model in R?). (Intercept) infected+ATB1 infected+ATB2 infected+ATB3 AgeThirty The model: test <- multinom(Path ~ Treat + Age, data = Data) Then, I needed to set baseline categories for the independent variables: Data$Age <- relevel(Data$Age, ref = "Twenty")ĭata$Treat <- relevel(Data$Treat, ref="infected without ATB") However, the assumption of odds proportionality was severely violated (graphically), which prompted me to use a multinomial model instead, using the nnet package.įirst I chose the outcome level that I need to use as baseline category: Data$Path <- relevel(Data$Path, ref = "Absent") I have a dataset which consists of “Pathology scores” (Absent, Mild, Severe) as outcome variable, and two main effects: Age (two factors: twenty / thirty days) and Treatment Group (four factors: infected without ATB infected + ATB1 infected + ATB2 infected + ATB3).įirst I tried to fit an ordinal regression model, which seems more appropriate given the characteristics of my dependent variable (ordinal). How do I get p-values using the multinom function of nnet package in R?
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |