[R] (no subject)

2009-05-18 Thread Debbie Zhang
Dear R users, Based on a set of binomial sample data, how would you utilize the "nlm" function in R to estimate the true proportion of the population? Thanks. Debbie _ [[elided Hotmail spam]] [[alternative HTML version d

[R] (no subject)

2009-05-17 Thread Debbie Zhang
Dear R users, I incurred some problems with importing data into R. i.e. If I want to import a text file or word file which contains lots of numerical numbers, what function should I use? Please help. Thanks a lot. Debbie ___

[R] (no subject)

2009-05-15 Thread Debbie Zhang
Dear R users, Does anyone know how to write a function involving derivative? i.e. I want to implementing Newton's method in R, so my function is something like x<- x-y/y' I am not sure how to write y' in my function. Can anyone help? In addition, if I want to implementing newton's method

Re: [R] Simulation

2009-05-14 Thread Debbie Zhang
Thanks for everyone. I think the approach below is most suitable for me, as a beginner. x=list() > > for(i in 1:n){ > > x[[i]]=rnorm(i,0,1) > > } Now, I am trying to obtain the sample variance (S^2) of the 1000 samples that I have generated before. I am wondering what command I should u

[R] Problems with randomly generating samples

2009-05-13 Thread Debbie Zhang
Dear R users, Can anyone please tell me how to generate a large number of samples in R, given certain distribution and size. For example, if I want to generate 1000 samples of size n=100, with a N(0,1) distribution, how should I proceed? (Since I dont want to do "rnorm(100,0,1)" in R for 1000 t

[R] Simulation

2009-05-13 Thread Debbie Zhang
Dear R users, Can anyone please tell me how to generate a large number of samples in R, given certain distribution and size. For example, if I want to generate 1000 samples of size n=100, with a N(0,1) distribution, how should I proceed? (Since I dont want to do "rnorm(100,0,1)" in R for 10

[R] (no subject)

2009-05-12 Thread Debbie Zhang
Dear R users, Does anyone know how to graph the function below? sqrt(2)Γ(n/2)/[sqrt(n − 1)Γ((n − 1)/2] Please help. Debbie _ Want to stay on top of your life online? Find out how with Windows Live! http://windowslive.ni

[R] Kumaraswamy distribution

2009-05-12 Thread Debbie Zhang
Dear R users, Does anyone know how to write function for Kumaraswamy distribution in R? Since I cannot write dkumar, pkumar, etc. in R. Please help. Thanks a lot, Debbie _ [[elided Hotmail spam]] [[alternative HTM