An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130624/83e6b3c5/attachment.pl>
Looping in Matrix
2 messages · Fazli Raziq, David Winsemius
On Jun 24, 2013, at 12:13 AM, Fazli Raziq wrote:
Hello all, I want to construct "Two way Matrix". The Algorithm is like: 1) Data of time with censoring or events 2) Predictor variables (genes) 3) Resample original data in step 1 and 2 by WR 4) Apply Coxph Model to resample data. (Apply Surv function to each Predictor variable, individually) 5) Give value 1 if it's P-value is less than 0.05, otherwise 0. Save it in the first Column (Column of 0's and 1's) of the Matrix. 6) Iterate the process 1 to 5, 10 times. And make 10 Columns of 0's and 1's. I have done the programming for it, but gives problem in Matrix. I cannot post the program, that I made. Because it may contain more errors and a little confusing.
This is not an R homework help line.
Best Regards Fazli Raziq [[alternative HTML version deleted]] \\\\\\\\\\\\\\\\\\\\\\\\
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
//////////////////////////////
and provide commented, minimal, self-contained, reproducible code.
David Winsemius Alameda, CA, USA