On Thu, 12 Nov 2009 08:10:12 -0800 (PST) carol white <wht_...@yahoo.com> 
wrote:
> Having a vector x of float type without any assumption of its distribution 
> (mean, variance etc), how to generate another vector that is 
> correlated with x?

Define an arbitrary function 'f', where 'f' may have a random component, 
and calculate f(x).

> Extensibility: how to simulate more than two correlated vectors (again 
> float type and no preference for their distribution and without having 
> vector x)?

Repeat step 1 several times. If you don't have 'x', define an arbitrary 
vector 'x' first ...

HTH. HAND.

-- 
Karl Ove Hufthammer

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to