| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Manipulating data matrices |
| From: | "angela g." <angelaeic@hotmail.com> |
| Date: | Tue, 28 Oct 2003 19:28:50 -0500 |
|
Hi,
I am performing survival analysis to compare survival of three groups with the following statement:
myfit_survfit(Surv(time, status)~group, data="">
"mydata" has a column called "group". There are three different groups: 0, 1 and 2.
However, I only want to compare two survival curves at a time (ie. pairwise comparissons: 0 vs 1, 0 vs. 2, 1 vs. 2).
1) How do I indicate that to the above command?
2) Is there an easy way (using the command line) to create data subsets of "mydata" that include only two groups ? What I have done thus far, is to create separate datasets, eg. mydata01 which only has group 0 and 1 in it; mydata02 with only group 0 and 2, etc., via the GUI interface but that's turning into a timeconsuming pain. Is there a better, faster way to do this.
Any feedback is greatly appreciated. Thanks.
Send instant messages to anyone on your contact list with MSN Messenger 6.0. Try it now FREE! |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Importing/Exporting Graphics, Jon Monteleone |
|---|---|
| Next by Date: | Re: Importing/Exporting Graphics, Prof Brian Ripley |
| Previous by Thread: | use the MMLCR package for latent class regression, Hongjie Wang |
| Next by Thread: | "pt" and "qt" for the t distribution with mu and sigma, Dimitris Rizopoulos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |