[R] replacing Na's with values on different records

2013-09-09 Thread El-Tahtawy, Ahmed
I'm sure I'm missing something really obvious in the for loop... Here is simplified data for 3 patients, we need filling in Na's with same WT for each patient, AUC halved for visit 3, doubled for visit 5 for the same patient, based on visit 4 for(i in unique(u3s$ID)){

Re: [R] predictive accuracy

2011-05-31 Thread El-Tahtawy, Ahmed
in the area of using R to solve challenging issues. Best Regards Ahmed -Original Message- From: Mike Marchywka [mailto:marchy...@hotmail.com] Sent: Thursday, May 26, 2011 8:55 PM To: gunter.ber...@gene.com; El-Tahtawy, Ahmed Cc: r-help@r-project.org Subject: RE: [R] predictive accuracy

[R] predictive accuracy

2011-05-26 Thread El-Tahtawy, Ahmed
I am trying to develop a prognostic model using logistic regression. I built a full , approximate models with the use of penalization - design package. Also, I tried Chi-square criteria, step-down techniques. Used BS for model validation. The main purpose is to develop a predictive model

Re: [R] predictive accuracy

2011-05-26 Thread El-Tahtawy, Ahmed
...@me.com] Sent: Thursday, May 26, 2011 10:54 AM To: El-Tahtawy, Ahmed Cc: r-help@r-project.org Subject: Re: [R] predictive accuracy On May 26, 2011, at 7:42 AM, El-Tahtawy, Ahmed wrote: I am trying to develop a prognostic model using logistic regression. I built a full , approximate models

[R] stratified Wilcoxon's rank sum test with the locally best weights

2010-09-14 Thread El-Tahtawy, Ahmed
Hello, I have been informed that there is no R package for the stratified Wilcoxon's rank sum test (Van Elteren's test) with the locally best weights. I need to use the alternative test to a clinical endpoint where the distribution approximate normal distribution, and compare to the regular

[R] ecdf error

2010-02-05 Thread El-Tahtawy, Ahmed
Dear friends, Ecdf used to work nicely before. e.g. ecdf(df1v[,c(1:6)],group=df1v$trt,q=.5,col=1:2,label.curves=list(keys=l ines), datadensity=rug) but now it does not work at all, even for a simpler code??? By the way, I used the same libraries. Thanks for your help. Ahmed

[R] duplicating records

2010-02-05 Thread El-Tahtawy, Ahmed
Dear friends, I need to fill in (duplicate the whole record) the missing days with the same record values as long as AE is the same value (i.e. 1), once AE value changes, the process of duplication should proceed with the new AE value till it changes again. e.g. I need to fill in records: day