[R] Simulation
Ivan Calandra
ivan.calandra at uni-hamburg.de
Tue Mar 1 09:48:10 CET 2011
Well, knowing how your data looks like would definitely help!
Say your data object is called "mydata", just paste the output from
dput(mydata) into the email you want to send to the list.
Ivan
Le 3/1/2011 04:18, bwaxxlo a écrit :
> I tried looking for help but I couldn't locate the exact solution.
> I have data that has several variables. I want to do several sample
> simulations using only two of the variables (eg: say you have data between
> people and properties owned. You only want to check how many in the samples
> will come up with bicycles) to estimate probabilities and that sort of
> thing.
> Now, I can only do a simulation in terms of this code: sample(1:10, size =
> 15, replace = TRUE).
> I do not know how select specific variables only.
> I'll appreciate the help
>
--
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Museum
Abt. Säugetiere
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calandra at uni-hamburg.de
**********
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/1525_8_1.php
More information about the R-help
mailing list