| To: | "Sliwerska, Ela" <elas@umich.edu> |
|---|---|
| Subject: | Re: pvalues from t-distribution |
| From: | Sundar Dorai-Raj <sundar.dorai-raj@PDF.COM> |
| Date: | Wed, 10 Dec 2003 14:55:28 -0600 |
| Cc: | "'s-news@lists.biostat.wustl.edu'" <s-news@lists.biostat.wustl.edu> |
| In-reply-to: | <4C189ECE29D522409BB35678D70DD6E40B56D9@shops701.mhri.med.umich.edu> |
| Organization: | PDF Solutions, Inc. |
| References: | <4C189ECE29D522409BB35678D70DD6E40B56D9@shops701.mhri.med.umich.edu> |
| Reply-to: | sundar.dorai-raj@PDF.COM |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
Ela, Sliwerska, Ela wrote: Hi all! I am trying to convert my tscore column into pvalues. I use 2*(1-pnorm(abs(tscore))) command from command window but it works for particular value. I would like to transfer my column all at once. Can someone help? Thanks! Ela (Please use an informative subject line.)If "tscore" is part of a data.frame (say, "DF") then you should do the following: 2 * (1 - pnorm(abs(DF$tscore)))But why not use a t-distribution rather than a Z-distribution? What are the distributional assumptions of "tscore"? If you know the degrees of freedom then using the following may be more appropriate: 2 * (1 - pt(abs(DF$tscore), degrees.of.freedom)) Hope this helps, Sundar |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [no subject], Sliwerska, Ela |
|---|---|
| Next by Date: | Re: pvalues from t-distribution, Lucke, Joseph F |
| Previous by Thread: | [no subject], Sliwerska, Ela |
| Next by Thread: | Re: pvalues from t-distribution, Lucke, Joseph F |
| Indexes: | [Date] [Thread] [Top] [All Lists] |