SAS Code

To accomplish a set of research goals, regardless if it is epidemiological, biomedical, socio-behavioral, or translational in nature, you must first arrange data in a suitable format for analysis. This it the field of informatics and programming.


NUMERIC_var =INPUT ( CHAR_var, 3.0);

/* SCANNING checkbox variable for Mother — where choices are 1, 2, 3 … , 10, */

IF CD10 = ”THEN CD10_mother = .;

ELSEIF (Index(CD10, ‘1’) ^=0) AND (Substr(CD10,2,1)) ^= 0 THEN CD10_mother = 1;

ELSE CD10_mother =0;

/* SCANNING for Father */

IF CD10 = ”THEN CD10_father = .;

ELSEIF Index(CD10, ‘2’) ^=0 THEN CD10_father = 1;

ELSE CD10_father =0;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s