[R] Random Sample with constraints

Ben Bolker bbolker at gmail.com
Sun Mar 3 17:21:04 CET 2013


Angelo Scozzarella Tiscali <angeloscozzarella <at> tiscali.it> writes:

> 
> Dear R friends,
> 
> I'd like to generate random sample (variable size and range) without a
specified distribution but with
> given mean and standard deviation.
> 
> Could you help me?
> 

   The problem is underspecified, so no, we can't.

   Any random sample will by definition be a sample from _some_
distribution.

  If you give more context someone might able be to help you with 
a solution.

  Ben Bolker



More information about the R-help mailing list