Skip to content
Prev 322594 / 398500 Next

Stratified Random Sampling Proportional to Size

a) Please post plain text

b) Please make reproducible examples (e.g. telling us how you accessed a 
database that we have no access to is not helpful). See ?head, ?dput and 
[1]

c) I don't know anything about the sampling package or the strata 
function, but I would recommend eliminating the rows that have zeros from 
the input data. E.g.:

stratum_cp <- stratum_cp[ 0<stratum_cp$stratp, ]

[1] 
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
On Fri, 26 Apr 2013, Lopez, Dan wrote:

            
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                       Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k