[R-br] GLM - logit

Vinicius Brito Rocha viniciusbritor em gmail.com
Terça Abril 5 17:00:25 BRT 2011


Senhores,
estou ajustando uma regressão logistica via glm

na hora de validar meu modelo com amostra teste,no comando predict, de
acordo com o Help o default para a previsão é o log do odd ratio e o
type="response" retornaria as probabilidades,

porem me parece que o default está retornando as probabilidades e o response
o ajuste linear.


segue o trecho do help


 the type of prediction required. The default is on the scale of the linear
predictors; the alternative "response" is on the scale of the response
variable. Thus for a default binomial model the default predictions are of
log-odds (probabilities on logit scale) and type = "response" gives the
predicted probabilities. The "terms" option returns a matrix giving the
fitted values of each term in the model formula on the linear predictor
scale.
Alguem sabe alguma coisa sobre isso?

Att.
-- 
Vinicius Brito Rocha.
Estatístico e Atuário,
Mestre em Pesquisa Operacional

www.aplicademic.blogspot.com
http://twitter.com/viniciusbritor

"Não se preocupe muito com as suas dificuldades em Matemática, posso
assegurar-lhe que as minhas são ainda maiores." - Albert Einstein.
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.inf.ufpr.br/pipermail/r-br/attachments/20110405/832f6f49/attachment.html>


Mais detalhes sobre a lista de discussão R-br