Re: [R] Summarising Data for Forrest Plots

2009-07-30 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
>Ah, I think I see what you want. Try this on each pair of exclusive sets: >Then under65row and over65row should be the first two rows of your result. >Can't test this at the moment, but I don't think it's too far wrong. > I knew this shouldn't need so much work ;-) Not cracked it yet - because

Re: [R] Summarising Data for Forrest Plots

2009-07-30 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
>Ah, I think I see what you want. Try this on each pair of exclusive sets: > n_total<-dim(mydataset)[1] under65<-mydataset$age <= 65 n_under65<-sum(under65) under65row<-c(sum(mydataset$dose[under65] == "FD"), sum(mydataset$dose[under65] == "RD"), sum(mydataset$vitalstatus[under65] == "dead" &

Re: [R] Summarising Data for Forrest Plots

2009-07-29 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
>> What I want to do is do a forrest (forest) plot for subgroups within my >> single dataset as a test of heterogeniety. I have a dataset who received >> either full dose(FD) or reduced dose(RD) treatment, and a number of >> characteristics about those subjects: age, sex, renal function, weight,

Re: [R] Summarising Data for Forrest Plots

2009-07-29 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
> Are n.FD and n.RD the number of people who received the full/reduced dose Yes - but I don't have the data structured like that YET - thats what I want to get to because thats what forest plot seems to be wanting. > and surv.FD and surv.RD the number of people that survived? Mmm... was more thin

Re: [R] Summarising Data for Forrest Plots

2009-07-29 Thread Viechtbauer Wolfgang (STAT)
-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Polwart Calum (County Durham and Darlington NHS Foundation Trust) Sent: Tuesday, July 28, 2009 20:28 To: r-help@r-project.org Subject: [R] Summarising Data for Forrest Plots > I tried to post this a few times last week

[R] Summarising Data for Forrest Plots

2009-07-28 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
I tried to post this a few times last week and it seems to have got stuck somehow so I'm trying from a different email in the hope that works. If somehow this has appeared on the list 20 tiems and I never saw any of them I apologize ;-) I'm basically an R-newbie. But I am VERY computer liter