Software: IVEware Version 0.3 Documentation

IVEware with Srcware

IVEware with Srcware can be started from the Srcshell run editor or from Srcware. Using the Impute Srcware example, here’s how.

Starting from the Srcshell run editor

  1. Download and install Srclib as described in the IVEware Installation Guide.
  2. In Windows start the Srcshell run editor. In Linux or Mac OS X run emacs with “-l ~/srclib/srcshell.el” as a command-line or icon option.
  3. Open or create and save an XML file (.xml) with the following structure, replacing the Srcware run name and statements and Impute run name and statements with your own.
    <srcware name="ive_examples">
    
    /* iveware examples - srcware version */
    
    /* import the input datasets */
    
    <getdata name="mydata2">
    data mydata2.txt;
    metadata;
    delim "\t";
    skip 1;
    variables
    name=STUDYID type=char;
    name=CASECNT type=num;
    name=AGE;
    name=GENDER;
    name=RACE3;
    name=HYPER;
    name=DIAB;
    name=SMOKE;
    name=NUMCIG;
    name=YRSSMOKE;
    name=FATINDEX;
    name=FAMMI;
    name=EDUSUBJ3;
    name=DHA_EPA;
    name=REDTOT;
    name=CHOLESTH;
    name=CAFFTOT;
    name=WGTKG;
    name=TOTLKCAL;
    name=ALCOHOL3;
    name=HGTCM;
    end;
    run;
    </getdata>
    
    /* run iveware */
    
    /* multiple imputation */
    
    <impute name="impute">
    title Multiple imputation;
    datain mydata2;
    dataout impute;
    default continuous;
    categorical casecnt gender race3 hyper diab smoke fammi edusubj3 cholesth;
    mixed cafftot alcohol3;
    transfer studyid;
    restrict numcig(smoke=2,3) yrssmoke(smoke=2,3);
    bounds numcig(>0) yrssmoke(>0,<=age-12) fatindex(>0) cafftot(>=0) alcohol3(>=0);
    maxpred redtot(3) wgtkg(2);
    minrsqd .01;
    iterations 5;
    multiples 5;
    seed 2001;
    run;
    </impute>
    
    </srcware>
    

    If the mydata2.set and impute.set files exist, perhaps from a previous run, you can reuse them by replacing <impute name=”impute”>…</impute> and <getdata name=”mydata2″>…</getdata> with the following.

    <getdata name="mydata2" />
    
    <impute name="impute" />
    
  4. In Srcshell, click “run”. In emacs, press F8.Once you’ve created an Srcware setup file, ive_examples.set in the example, you can reuse it by issuing the following command.
    ~/srclib/bin/srcware ive_examples.set
    

Starting from Srcware

    1. Download and install Srclib as described in the IVEware Installation Guide.
    2. In a text editor, create and save a Srcware setup file with the following structure, replacing the Srcware statements and the Impute run name and statements with your own.
/* iveware examples - srcware version */

/* import the input datasets */

%getdata(name="mydata2");
data mydata2.txt;
metadata;
delim "\t";
skip 1;
variables
name=STUDYID type=char;
name=CASECNT type=num;
name=AGE;
name=GENDER;
name=RACE3;
name=HYPER;
name=DIAB;
name=SMOKE;
name=NUMCIG;
name=YRSSMOKE;
name=FATINDEX;
name=FAMMI;
name=EDUSUBJ3;
name=DHA_EPA;
name=REDTOT;
name=CHOLESTH;
name=CAFFTOT;
name=WGTKG;
name=TOTLKCAL;
name=ALCOHOL3;
name=HGTCM;
end;
run;

/* run iveware */

/* multiple imputation */

%impute(name=impute, setup=new);
title Multiple imputation;
datain mydata2;
dataout impute;
default continuous;
categorical casecnt gender race3 hyper diab smoke fammi edusubj3 cholesth;
mixed cafftot alcohol3;
transfer studyid;
restrict numcig(smoke=2,3) yrssmoke(smoke=2,3);
bounds numcig(>0) yrssmoke(>0,<=age-12) fatindex(>0) cafftot(>=0) alcohol3(>=0);
maxpred redtot(3) wgtkg(2);
minrsqd .01;
iterations 5;
multiples 5;
seed 2001;
run;
    1. Open a terminal or command window.
    2. Change to the working directory you want to use.
    3. Submit the following, changing the name and paths as needed.
~/srclib/bin/srcware ive_examples.set

Please report problems or send comments via e-mail to IVEware Support: isr-iveware@umich.edu. For more detailed help, please complete and submit this Help Request form.