{smcl}
{* 04feb2007}{...}
{hline}
{hi:help ice_reformat}{right:(SJ7-4: st0067_3)}
{hline}

{title:Reformat ice file}

{p 8 17 2}
{cmd:ice_reformat using} {it:filename}
{cmd:,}
{cmd:replace}


{title:Description}

{pstd}
{cmd:ice_reformat} reformats files of imputations created by versions of 
{cmd:ice} earlier than 1.4.0 to the current format. This ensures
compatibility with {helpb mim}. The changes are described
under {it:Remarks}.


{title:Option}

{pstd}{cmd:replace} is required. It permits {it:filename} to be replaced.


{title:Remarks}

{pstd}
{cmd:ice_reformat} makes the following small changes to {it:filename}:

{pmore}(i) Variables {hi:_i} and {hi:_j} are renamed to {hi:_mi} and
{hi:_mj}, respectively.

{pmore}(ii) The characteristic {hi:_dta[mi_id]} is changed from {hi:_i} to
{hi:_mi}.

{pstd}These changes ensure that the file is compatible with {helpb mim}.


{title:Example}

{pstd}{cmd:. ice_reformat "c:\data\myimputations.dta", replace}


{title:Author}

{pstd}
Patrick Royston, MRC Clinical Trials Unit, London.{break}
pr@ctu.mrc.ac.uk


{title:Also see}

{psee}
Online:  {helpb ice}, {helpb mim} (if installed).
