data set simulation

  • Follow


Hi All,

Is there a procedure in SAS that can create/simulate a data set that
has two variables with certain joint distribution or some kind of
correlation?

Thanks!

Steven
0
Reply Steven 6/4/2010 2:09:25 PM

Hey Steve,

Not sure how to generate bivariate joint distribution, but you can
generate two correlated variables in this way:

A=3D10*ranuni(-1);
B=3DA+ranuni(-1);

Hope it helps.

On Jun 4, 7:09=A0am, Steven <stevenwang....@gmail.com> wrote:
> Hi All,
>
> Is there a procedure in SAS that can create/simulate a data set that
> has two variables with certain joint distribution or some kind of
> correlation?
>
> Thanks!
>
> Steven

0
Reply Simon 6/6/2010 9:41:24 AM


Not that I myself have a any knowledge in this area - but just from
what I've understood from other peoples posts:
Aren't there SAS procedures like PROC LIFEREG doing things like you
ask for?
0
Reply Patrick 6/7/2010 1:21:32 PM

If you have SAS/ETS, then PROC MODEL is the way to go. See SAS
support:

http://support.sas.com/kb/32/624.html





On Jun 4, 7:09=A0am, Steven <stevenwang....@gmail.com> wrote:
> Hi All,
>
> Is there a procedure in SAS that can create/simulate a data set that
> has two variables with certain joint distribution or some kind of
> correlation?
>
> Thanks!
>
> Steven

0
Reply Garnett 6/7/2010 4:53:26 PM

3 Replies
235 Views

(page loaded in 0.048 seconds)

Similiar Articles:













7/28/2012 5:12:02 AM


Reply: