[R] Where the error message comes from?

2005-08-04 Thread Mohammad A. Chaudhary
Hi all: I get the following error message that I am not able to resolve. Error in if (const(t, min(1e-08, mean(t)/1e+06))) { : missing value where TRUE/FALSE needed It appears right before the last data.frame statement. Below is the program that simulates data from one way r

RE: [R] Generating a binomial random variable correlated with a

2005-04-18 Thread Mohammad A. Chaudhary
Dear: Thank you very much for your 'generous' help. Overall I have learnt the limits of the solution to my problem. I was not feeling compfortable how I was going around with the problem. Bill and Ted provided a wonderful insight into what I was accomplishing and provided alternative solutions. The

RE: [R] extracting one element of correlation matrices from a list poroduced by the 'by' statement

2005-04-13 Thread Mohammad A. Chaudhary
Great! Thank you very much. Looks R has unlimited possibilities. Regards, Ashraf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Dalgaard Sent: Wednesday, April 13, 2005 4:11 PM To: Mohammad A. Chaudhary Cc: r-help@stat.math.ethz.ch Subject: Re: [R

[R] extracting one element of correlation matrices from a list poroduced by the 'by' statement

2005-04-13 Thread Mohammad A. Chaudhary
I am producing 2X2 correlation matrices by a class variable. I need to extract a vector of correlation coefficients only. I am doing that in a loop (see below) but I am sure there would be a simpler way. Please help! > by(d1[,c(2,3)],d1[,1],cor) d1[, 1]: 1 c e c 1.000 0

RE: [R] 'skewing' a normal random variable

2005-04-08 Thread Mohammad A. Chaudhary
Hi: Thank you and sorry for getting back late. Your input helped me a lot. I particularly liked using box.cox. Regards, Ashraf __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://

[R] Confidence Intervals from Bootstrap Replications

2004-12-17 Thread Mohammad A. Chaudhary
Hi All: I have to compute bootstrap confidence intervals, the statistic (incremental cost effectiveness ratio) is computed from two samples (intervention and control) of different sizes. All the bootstrap functions that I have seen use one dataset as argument. I may go ahead and get the desired nu