Next: Examining Sampling Distributions
Up: Some Rweb Notes
Previous: Scatterplots and Correlation
If you have a population of, say, 100 individuals with labels
1,...,100, then you can use the expression 1:100 to
construct the sequence of labels. The command sample then
creates a random sample. For a random sample of size 10 use
Try it several times to see that you get a different sample each time.
Also try using different population and sample sizes.
Try some examples of your own in the work area below.
Work Area
Enter your own commands here; then click the Submit button.
Luke Tierney
2006-08-23