Akram Khaleghei Ghosheh balagh
2011-Jan-23 23:04 UTC
[R] extract score vector and covariance matrix in glm package
Hello I am running a project but I encounter a problem . I would be happy to receive help : problem: I have a binary dependent variable and some covariates logit(y)=a+bx+cz . I want to estimate the score vectors and their covariance by the usage of logit function and so glm in R .The vlaue of one of the coefficient ( like b) is known previously and I want to extract a and c and covariance matrix. How could I do it? Thanks; [[alternative HTML version deleted]]
David Winsemius
2011-Jan-24 04:30 UTC
[R] extract score vector and covariance matrix in glm package
On Jan 23, 2011, at 6:04 PM, Akram Khaleghei Ghosheh balagh wrote:> Hello > I am running a project but I encounter a problem . I would be happy > to receive help : > problem: > I have a binary dependent variable and some covariates logit(y)=a+bx > +cz . > I want to estimate the score vectors and their covariance by the > usage of > logit function and so glm in R .The vlaue of one of the > coefficient ( > like b) is known previously and I want to extract a and c and > covariance > matrix.Several of your questions are answered on the help(glm) page (which also has worked examples). Fixed coefficients are handle with the offset arguments.> How could I do it? > > Thanks; > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.David Winsemius, MD Heritage Laboratories West Hartford, CT