Displaying 2 results from an estimated 2 matches for "studysites".
2008 Mar 09
1
sampsize in Random Forests
Hi all,
I have a dataset where each point is assigned to a class A, B, C, or
D. Each point is also assigned to a study site. Each study site is
coded with a number ranging between 1-100. This information is stored
in the vector studySites.
I want to run randomForests using stratified sampling, so I chose the option
strata = factor(studySites)
But I am not sure how to control the number of samples taken from each
study site. I tried to use 10 points from each study site:
mySampSize = rep(10, 100)
So my function call looks like:
RF...
2010 Jul 15
0
Histogram with two groups on the same graph (not on separate panels)
I have been trying to produce a histogram that has two groups (male and female
snakes) on the same graph (either superimposed or each frequency bar appears
side by side). I found a couple of functions for superimposed histogram written
by other people.
The below is the codes I used for my data containing a column of svl (body size;
snout-vent length) and another column of sex (male or female).