Re: [R] Simulation with R

2006-12-09 Thread Ben Bolker
Ethan Johnsons ethan.johnsons at gmail.com writes: An apparatus exists ... Can we do a simulation of the process using R with 100 balls, and plot the frequency distribution of the position of the balls at the bottom with respect to the entry position? Can you make a plausible case

Re: [R] Simulation in R - Part 2

2006-12-08 Thread Petr Pikal
:[R] Simulation in R - Part 2 Hello! So, the simulation works (drawing 100 samples and then calculate the model for each sample). Here is the code: --snip-- # sample size n=200 ergebnisse200 - rep(0, each=100) stichproben200 - vector(‶list※, 100) default200 - rep(0

[R] Simulation with R

2006-12-08 Thread Ethan Johnsons
An apparatus exists whereby a collection of balls is displaced to the top of a stack by suction. A top level (Level 1) each ball is shifted 1 unit to the left or 1 unit to the right at random with equal probability. The ball then drops down to level 2. At Level 2, each ball is again shifted 1 unit

[R] Simulation in R

2006-12-07 Thread justin bem
: r-help@stat.math.ethz.ch Envoyé le : Jeudi, 7 Décembre 2006, 1h20mn 49s Objet : [R] Simulation in R Hello! I have the following problem. My code: --snip-- ergebnisse - rep(0, each=2) stichproben - rep(0, each=2) for (i in seq(1:2)) { n - dim(daten)[1] ix - sample(n,200) # producing

[R] Simulation in R - Part 2

2006-12-07 Thread Alexander Geisler
Hello! So, the simulation works (drawing 100 samples and then calculate the model for each sample). Here is the code: --snip-- # sample size n=200 ergebnisse200 - rep(0, each=100) stichproben200 - vector(“list”, 100) default200 - rep(0, each=100) for (i in seq(1:100)) { n - dim(daten)[1]

[R] Simulation in R

2006-12-06 Thread Alexander Geisler
Hello! I have the following problem. My code: --snip-- ergebnisse - rep(0, each=2) stichproben - rep(0, each=2) for (i in seq(1:2)) { n - dim(daten)[1] ix - sample(n,200) # producing samples samp_i - daten[ix,] stichproben[i] - samp_i # doesn’t works # Calculation of the

Re: [R] Simulation in R

2006-12-06 Thread Petr Pikal
Hi On 7 Dec 2006 at 1:20, Alexander Geisler wrote: Date sent: Thu, 07 Dec 2006 01:20:49 +0100 From: Alexander Geisler [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Subject:[R] Simulation in R Hello! I have the following