Re: [R] Determining sample size from power function

2013-01-11 Thread Kaveh Zakeri
rator is invalid for atomic vectors In addition: Warning message: In 1:r : numerical expression has 6 elements: only the first used Any help would be appreciated. Thank you. From: Jorge I Velez [jorgeivanve...@gmail.com] Sent: Wednesday, January 09, 2013 11:22 PM To: Kav

[R] Determining sample size from power function

2013-01-09 Thread Kaveh Zakeri
Hello, I am trying to get the power function to report the sample size rather than the power. My goal is to input a variety of values for theta and then for the power function to report the corresponding sample sizes. I haven't had much luck trying to create my own function, something along the