Displaying 5 results from an estimated 5 matches for "urnsamples".
Did you mean:
nr_samples
2010 Aug 13
3
Games
Hi,
I want to build the table of a football league with 11
teams. All play together. So will 55 games.
Since there are an odd number of teams in each round a team
will not play.
The games will be:
games = urnsamples(1:11, x =
c('A','B','C','D','E','F','G','H','I','J','K'), size=2,
replace=F,
ordered=FALSE)
games
As will be five games per round. How to build a table with
all the championship rounds, automatically?
I thou...
2010 Dec 22
3
A question to get all possible combinations
Let say, I have a matrix with 8 rows and 6 columns:
> df1 <- matrix(NA, 8, 4)
> df1
[,1] [,2] [,3] [,4]
[1,] NA NA NA NA
[2,] NA NA NA NA
[3,] NA NA NA NA
[4,] NA NA NA NA
[5,] NA NA NA NA
[6,] NA NA NA NA
[7,] NA NA NA NA
[8,] NA NA NA NA
Now I want to get **all possible** ways to fetch 6 cells at a
2009 Mar 13
2
code to find all distinct subsets of size r from a set of size n
I'm doing a permutation test and need to efficiently generate all
distinct subsets of size r from a set of size n. P 138 of MASS (4th
ed) notes that "The code to generate this efficiently is in the
scripts". I was unable to find this code on quick inspection of the
\library\MASS\scripts file for Chapter 5 and 'subsets' is not a
function in MASS.
I did find this problem is
2008 Dec 11
3
generate combination multiset (set with repetition)
Hi,
This has been asked before but not sufficiently answered from what I
could find. How do you create combinations
with repetitions (multisets) in R?
If I have
> set <- array(1:3)
And I want to choose all combinations of picking 2 numbers, I want to
get a print out like
[,1] [,2]
[1,] 1 1
[2,] 1 2
[3,] 1 3
[4,] 2 2
[5,] 2 3
[6,] 3 3
subsets(set,
2009 Mar 14
1
multiple hypothesis testing
...e@gmail.com>
> Cc: r-help@r-project.org
> Message-ID:
> <2ad0cc110903130625o71b3c256q84f418f8ec2b5802@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> For permutations a couple of options are 'permutations' in package
> gtools, and 'urnsamples' in package prob
>
> hth,
> Kingsford Jones
>
> On Fri, Mar 13, 2009 at 6:35 AM, Dale Steele <dale.w.steele@gmail.com>
> wrote:
> > I'm doing a permutation test and need to efficiently generate all
> > distinct subsets of size r from a set of size n. ?P 1...