Displaying 3 results from an estimated 3 matches for "multacute".
2007 Mar 25
2
resolving expand.grid & NA errors
I am hoping for some advice regarding resolving error messages I have
received when trying to use the expand.grid command.
library(nnet)
library(MASS)
library(car)
mod.multacute <-multinom(kc$group ~ kc$in.acute.danger *
kc$violent.convictions, na.rm=T)
summary(mod.multacute, cor=F, Wald=T)
Anova (mod.multacute)
confint (mod.multacute)
> predictors <- expand.grid(group=1:3, in.acute.danger = c("y","n"),
violent.convictions = c("y"...
2007 Mar 26
1
fitted probabilities in multinomial logistic regression are identical for each level
...ith another independent variable and
obtained a similar pattern.
Any assistance with this is appreciated
Bob Green
> predictors <- expand.grid(group=1:3, in.acute.danger = c("y","n"),
violent.convictions = c("y","n"))
> p.fit <- predict(mod.multacute, predictors, type='probs')
> p.fit
1 2 3
1 0.4615070 0.3077061 0.2307869
2 0.4615070 0.3077061 0.2307869
3 0.4615070 0.3077061 0.2307869
4 0.7741997 0.1290310 0.0967693
5 0.7741997 0.1290310 0.0967693
6 0.7741997 0.1290310 0.0967693
7 0.4230927 0.38460...
2007 Apr 19
2
inconsistent output using 'round'
I am hoping for some advice regarding limiting decimal points to 3.
'Round' produces the desired results except for the 97.5% confidence interval.
Any advice as to how I modify the code to obtain output to 3 decimal
points for all ouput is appreciated,
regards
Bob Green
mod.multgran <-multinom(offence ~ grandiose * violent.convictions,
data = kc, na.action = na.omit)