search for: rdiscret

Displaying 6 results from an estimated 6 matches for "rdiscret".

Did you mean: rdiscrete
2004 Sep 27
1
random discrete from the first tuple
Dear UseR I have a dataset, for instance x1(A, B, C), x2(M,F), x3(X1,X2,X3,X4) and x4(W,F,P). I want to make a small dataset with the random tuple. I know package e1071 can handle a random discrete, > library(e1071) > x1 <- rdiscrete(6, c(2,2,2), c("A","B","C")) > x2 <- rdiscrete(6, c(3,3), c("M","F")) > x3 <- rdiscrete(6, c(2,2,1,1), c("X1","X2","X3","X4")) > x4 <- rdiscrete(6, c(2,2,2), c("W","F&...
2007 Sep 04
2
Efficient sampling from a discrete distribution in R
Hello r-help, As far as I've seen, there is no function in R dedicated to sampling from a discrete distribution with a specified mass function. The standard library doesn't come with anything called rdiscrete or rpmf, and I can't find any such thing on the cheat sheet or in the Probability Distributions chapter of _An Introduction to R_. Googling also didn't bring back anything. So, here's my first attempt at a solution. I'm hoping someone here knows of a more efficient way. # Sampl...
2002 Jul 01
3
Discrete random variable
Hi, I would create a function rdiscrete that returns the value of a discrete random variable X defined on a subset which can change, and for the same probability for the issue, eg: X could sometimes take a value in the subset {2,3,4} with probability 1/3 for each issue, and sometimes X could take a value in the subset {2,3,4,5,6} with p...
2002 Jul 07
1
Bug list summary (automatic post)
...rtin Maechler <maechler@stat.math.ethz.ch> Date: Thu, 13 Jun 2002 08:21:50 +0200 --The supplementary (table of sum one) is fixed for 1.5.1. --Detection code for the first problem has been added to 1.5.1 which will stop --the crash, but the underlying cause is still open. * PR# 1716 * Subject: rdiscrete in e1071 fails when n==1 From: "John Aitchison" <jaitchis@hwy.com.au> Date: Fri, 28 Jun 2002 10:28:17 +1000 * PR# 1729 * Subject: problem with qq( ) From: Jarno.Tuimala@Helsinki.Fi Date: Tue, 2 Jul 2002 10:37:10 +0200 (MET DST) * PR# 1741 * Subject: groupedData constructor from a f...
2002 Aug 21
1
Bug list summary (automatic post)
...rtin Maechler <maechler@stat.math.ethz.ch> Date: Thu, 13 Jun 2002 08:21:50 +0200 --The supplementary (table of sum one) is fixed for 1.5.1. --Detection code for the first problem has been added to 1.5.1 which will stop --the crash, but the underlying cause is still open. * PR# 1716 * Subject: rdiscrete in e1071 fails when n==1 From: "John Aitchison" <jaitchis@hwy.com.au> Date: Fri, 28 Jun 2002 10:28:17 +1000 * PR# 1729 * Subject: problem with qq( ) From: Jarno.Tuimala@Helsinki.Fi Date: Tue, 2 Jul 2002 10:37:10 +0200 (MET DST) * PR# 1741 * Subject: groupedData constructor from a f...
2002 Sep 21
1
Bug list summary (automatic post)
...rtin Maechler <maechler@stat.math.ethz.ch> Date: Thu, 13 Jun 2002 08:21:50 +0200 --The supplementary (table of sum one) is fixed for 1.5.1. --Detection code for the first problem has been added to 1.5.1 which will stop --the crash, but the underlying cause is still open. * PR# 1716 * Subject: rdiscrete in e1071 fails when n==1 From: "John Aitchison" <jaitchis@hwy.com.au> Date: Fri, 28 Jun 2002 10:28:17 +1000 * PR# 1729 * Subject: problem with qq( ) From: Jarno.Tuimala@Helsinki.Fi Date: Tue, 2 Jul 2002 10:37:10 +0200 (MET DST) --A report on lattice * PR# 1741 * Subject: groupedDat...