s-news
[Top] [All Lists]

Re: extracting rows of $coefficients by variable name?

To: "Steve Sullivan" <ssullivan@qedgroupllc.com>
Subject: Re: extracting rows of $coefficients by variable name?
From: John Fox <jfox@mcmaster.ca>
Date: Fri, 23 May 2003 11:28:17 -0400
Cc: <s-news@lists.biostat.wustl.edu>
In-reply-to: <D4C203B93FEDF04CA2B493EB08F2E431030514@qeds001.hq.wash.qed groupllc>
Dear Steven,

At 10:50 AM 5/23/2003 -0400, Steve Sullivan wrote:

Is there a handy way to extract information from a summarized lm or glm object s $coefficients by variable name? I want to pull out only the coefficient estimate, SE, t-value and p-value for a particular variable (my treatment indicator).

summary(model)$coefficients["predictor.name",] should get you what you want.

John


-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox@mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
-----------------------------------------------------


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