Skip to content
Prev 67621 / 398506 Next

multinom and contrasts

Dear chip,

The difference is small and is due to computational error. 

Your example:
[1] 2.207080e-05

Tightening the convergence tolerance in multinom() eliminates the
difference:
reltol=1.0e-12)
# weights:  20 (12 variable)
initial  value 91.495428 
iter  10 value 91.124526
final  value 91.124523 
converged
reltol=1.0e-12)
# weights:  20 (12 variable)
initial  value 91.495428 
iter  10 value 91.125287
iter  20 value 91.124523
iter  20 value 91.124523
iter  20 value 91.124523
final  value 91.124523 
converged
[1] 1.530021e-08

I hope this helps,
 John 

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
--------------------------------
1,10,11,22,25,30),])
1,10,11,22,25,30),])