Anamika Chaudhuri <canamika16 <at> yahoo.com> writes: > I was trying to calculate an age adjusted rate for which we have the formula as > sum(weight*rate)/sum(weight). I am using the framingham dataset called fram here.I cant figure out how I > could change the logical statement I have for the standard dataset (in red) to calculate weight and > calculating the wevents and atrisk(in red)
... lengthy code follows If you want to get an answer, provide as good subject line and a data set (e.g. part of Framingham). Nobody loves to wade through so many lines of code without the chance to check out what is intended. Dieter ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
