Thank you!
That does exactly what I was looking for.
Best,
Giovanni
From: Duncan Murdoch [murdoch.dun...@gmail.com]
Sent: Wednesday, September 17, 2014 15:02
To: Giovanni Petris; r-help@R-project.org
Subject: Re: [R] Generating unordered, with
On 17/09/2014 3:46 PM, Giovanni Petris wrote:
Hi Duncan,
You are right. The idea of the derivation consists in 'throwing' k placeholders
("*" in the example below) in the list of the individuals of the population.
For example, if the population is letters[1:6], and the sample size is 4, the fo
___
From: Duncan Murdoch [murdoch.dun...@gmail.com]
Sent: Wednesday, September 17, 2014 14:07
To: Giovanni Petris; r-help@R-project.org
Subject: Re: [R] Generating unordered, with replacement, samples
On 17/09/2014 2:25 PM, Giovanni Petris wrote:
> Hello,
>
> I am trying to
On 17/09/2014 3:07 PM, Duncan Murdoch wrote:
On 17/09/2014 2:25 PM, Giovanni Petris wrote:
> Hello,
>
> I am trying to interface in my teaching some elementary probability with
Monte Carlo ideas. In sampling from a finite population, the number of distinct
samples of size 'k' from a population
On 17/09/2014 2:25 PM, Giovanni Petris wrote:
Hello,
I am trying to interface in my teaching some elementary probability with Monte
Carlo ideas. In sampling from a finite population, the number of distinct
samples of size 'k' from a population of size 'n' , when individuals are
selected with
13:49
To: Giovanni Petris; r-help@R-project.org
Subject: Re: [R] Generating unordered, with replacement, samples
Hello,
Try function ?sample. Something like, if 'x' is a vector of size n,
sample(x, k, replace = TRUE)
If you want indices into 'x', try instead
sample(n, k, r
Hello,
Try function ?sample. Something like, if 'x' is a vector of size n,
sample(x, k, replace = TRUE)
If you want indices into 'x', try instead
sample(n, k, replace = TRUE)
Hope this helps,
Rui Barradas
Em 17-09-2014 19:25, Giovanni Petris escreveu:
Hello,
I am trying to interface in m
7 matches
Mail list logo