Hi:
I'm working with multinomial models with library nnet, and I'm trying to get
the explained deviance (pseudo R^2) of my models.
I am assuming that:
pseudo R^2= 1 - dev(model) / dev (null)
where dev(model) is the deviance for the fitted model and dev(null) is the
deviance for the null
thks Dimitris, it helped a lot.
alex
-Mensagem original-
De: Dimitris Rizopoulos [mailto:[EMAIL PROTECTED]
Enviada: qui 19-05-2005 12:50
Para: alexbri
Cc: r-help@stat.math.ethz.ch
Assunto: Re: [R] plot question
Dear all:
I am trying to fit a multinomial log linear model to the following data:
worms- data.frame(year= rep(2000:2004, c(3,3,3,3,3)),age=rep(1:3,5),
mud=c(2,5,0,8,7,7,5,9,14,12,8,7,5,13,11),sand=c(4,7,13,4,14,13,20,17,15,23,20,9,35,27,18),
Hello, I'm new in R and I want to do one thing that is very easy in excel,
however, I cant do it in R.
Suppose we have the data frame:
data- data.frame(A=c(a1,a2,a3,a4,a5))
I need to obtain another column in the same data frame (lets say
B=c(b1,b2,b3,b4,b5) in the following way: