[R] Creating two groups of random numbers

2017-06-29 Thread Naike Wang
Hi all, I want to create two groups of random numbers to calculate proportions. The first group is to represent the number of cases in a study. The second group is to represent the sample size of the study. Apparently, the sample size is going to have to be bigger or equal to the number of cases, b

[R] Creating two groups of random numbers

2017-06-29 Thread Naike Wang
Hi all, I want to create two groups of random numbers to calculate proportions. The first group is to represent the number of cases in a study. The second group is to represent the sample size of the study. Apparently, the sample size is going to have to be bigger or equal to the number of cases, b

Re: [R] Classic fail-safe N

2017-06-26 Thread Naike Wang
l Message- > >From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Naike > Wang > >Sent: Monday, June 26, 2017 08:32 > >To: R-help@r-project.org > >Subject: [R] Classic fail-safe N > > > >Hi all, > >I was conducting a meta-analysis of si

[R] Classic fail-safe N

2017-06-25 Thread Naike Wang
Hi all, I was conducting a meta-analysis of single proportions(i.e. without a control group) using the metafor package. When I performed a classic fail-safe N, I noticed that the result (the number of missing studies that would bring p-value to the alpha, to be exact)was different than that I got i

[R] Classic fail-safe N

2017-06-25 Thread Naike Wang
Hi all, I was conducting a meta-analysis of single proportions(i.e. without a control group) using the metafor package. When I performed a classic fail-safe N, I noticed that the result (the number of missing studies that would bring p-value to the alpha, to be exact)was different than that I got i