Re: [R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
MC Durham, NC 27710 FAX 919-681-7494 From: Jason Stout, M.D. Sent: Saturday, May 24, 2014 11:47 AM To: David Winsemius Cc: r-help@r-project.org Subject: RE: [R] Conditional assignment of values to vector using ifelse This is obviously an oversimplified way of simulating differen

Re: [R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
. Jason Stout, MD, MHS Box 102359-DUMC Durham, NC 27710 FAX 919-681-7494 From: David Winsemius [dwinsem...@comcast.net] Sent: Saturday, May 24, 2014 11:35 AM To: Jason Stout, M.D. Cc: r-help@r-project.org Subject: Re: [R] Conditional assignment of values to

Re: [R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread David Winsemius
On May 24, 2014, at 6:58 AM, Jason Stout, M.D. wrote: > Hi R-users, > > I'm trying to simulate the outcome of several diagnostic tests with binary > outcomes (positive/negative) and different performance characteristics. What > I would like to generate is a dataframe with the first column rep

[R] Conditional assignment of values to vector using ifelse

2014-05-24 Thread Jason Stout, M.D.
Hi R-users, I'm trying to simulate the outcome of several diagnostic tests with binary outcomes (positive/negative) and different performance characteristics. What I would like to generate is a dataframe with the first column representing the result of a "perfect" test, and different columns t