Here is the CMT Uptime check phrase
IVEware: Imputation and Variance Estimation Software: IVEware Documentation

IVEware with Stata

IVEware with Stata can be started from the Srcshell run editor or from Stata. Using the Impute Stata 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 Stata run name and statements and Impute run name and statements with your own.
    <stata name="ive_examples">
    
    /* iveware examples - stata version */
    
    /* import the input datasets */
    
    insheet using mydata2.txt, clear names case tab
    save mydata2, replace
    
    /* 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>
    
    </stata>
    

    If the impute.set file exists, perhaps from a previous run, you can reuse it by replacing <impute name=”impute”>…</impute> with the following.

    <impute name="impute" />
    
  4. In Srcshell, click “run”. In emacs, press F8.Once you’ve created a Stata setup file, ive_examples.do in the example, you can reuse it by issuing the following command.
    stata ive_examples.do
    

Starting from Stata

  1. Download and install Srclib as described in the IVEware Installation Guide.
  2. Start Stata.
  3. Change to the working directory you want to use.
  4. In the Stata Do-File Editor, create and save an Impute setup file (.set) with the following structure, replacing the Impute statements with your own. The name of the opened or saved file should be the one you use in the global name statement below.
    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;
    
  5. In the Do-File Editor, open or create a Stata setup with the following structure, replacing the srclib location, the Stata statements and the Impute run name with your own. Note that the srclib import path is the stata subdirectory of the srclib directory. This is a change from previous installations.
    global srclib "~/srclib/stata"
    
    /* iveware examples - stata version */
    
    /* import the input datasets */
    
    insheet using mydata2.txt, clear names case tab
    save mydata2, replace
    
    /* run iveware */
    
    /* multiple imputation */
    
    global name "impute"
    do $srclib/impute
    
  6. Click “run”.

Please report problems or send comments via e-mail to IVEware Support: [email protected]. For more detailed help, please complete and submit this Help Request form.