s-news
[Top] [All Lists]

Re: Retrieving probit or logit standard errors

To: "Pattison, David H." <David.H.Pattison@ssa.gov>, s-news@lists.biostat.wustl.edu
Subject: Re: Retrieving probit or logit standard errors
From: Andreas Christmann <A.Christmann@hrz.uni-dortmund.de>
Date: Thu, 21 Jun 2001 15:41:57 +0200
Organization: Universitaet Dortmund, HRZ
References: <4AD8473FA108D311ACD24000500FBAA0947FC8@S0FBAA0>
Perhaps the following code helps, but it is not elegant.
Assume that y is the response vector (0/1) and
x is the matrix of explanatory variables.

out <- glm(cbind(y,1-y) ~ x , family=binomial)
out2 <- summary(out)$coefficients

Then
out2[,1] is the vector of the ML estimates
and
out2[,2] is the vector of the standard errors.

For each data set i, these vectors can be stored as rows in two matrices,
say betahat and SEhat.

Andreas

---------------------------------------
PD Dr. Andreas Christmann
Universitaet Dortmund
Hochschulrechenzentrum
Wissenschaftliche Anwendungen
D-44221 Dortmund
GERMANY
email  A.Christmann@hrz.uni-dortmund.de
phone  (049)-231-755-2763
fax    (049)-231-755-2731
---------------------------------------



<Prev in Thread] Current Thread [Next in Thread>