Date: Thu, 20 Jun 2002 16:30:09 GMT
ReplyTo: "Michael G. Sadof" <mgs@MGSNET.NET>
Sender: "SAS(r) Discussion" <SASL@LISTSERV.UGA.EDU>
From: "Michael G. Sadof" <mgs@MGSNET.NET>
Subject: Re: combining data
Meg: Here is a simple solution using the _n_ =1 variable
options nocenter;
DATA small;
x=1;y=2;z=3;
run;
data big;
infile cards;
input a b c;
cards;
1 1 2
2 2 2
3 3 3
4 4 4
;
data three; set big;
if _n_=1 then set small;
proc print data=three;run;
"Meg A." <napu1975@hotmail.com> wrote in message
news:ec9960d5.0206200825.645b16b1@posting.google.com...
> Hello,
> I have two data sets, one with all patients (n=56,000), and one is
> just one row with several beta coefficient variables. I would like to
> combine the two, and make is so all 56,000 have the variables, with
> the same values repeated for each patient. When I combine, it only
> give the first patient the values and makes the rest missing.
>
> This is what I would like it to look like in the end
>
> obs x y z a b c coef1 coef2 coef3 etc.
> 1 1 2 5 8 9 0 236 125 989
> 2 8 9 7 5 3 1 236 125 989
>
> Any assitance would be much appreciated!
>
> meg
