[R] Select subset with specific distribution parameters.
ssefick at gmail.com
Sun Aug 9 14:13:02 CEST 2009
Could you provide a reproducible example?
On Thu, Aug 6, 2009 at 10:59 AM, sedm1000<gdoran at mit.edu> wrote:
> This may be a simple problem, but I am looking to select a subset of rows
> from a dataframe that will have the same parameters as all the rows in
> another dataframe.
> e.g. I have a 500 row dataframe with 20 columns. I want to select a subset
> of rows from a larger dataframe that match the distribution of values for
> one or more of the columns within the 500 row dataframe (i.e. within same
> range, but also having same mean/median and overall shape).
> By basic subsetting I can get a set with a similar approximate distribution
> to the 500 row dataset, but not highly similar, and this might be a problem
> for the analysis. Any help would be much appreciated, thanks.
> View this message in context: http://www.nabble.com/Select-subset-with-specific-distribution-parameters.-tp24848201p24848201.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted the
annoying little problems of being mammals.
More information about the R-help