Research Article

Understanding Dynamic Status Change of Hospital Stay and Cost Accumulation via Combining Continuous and Finitely Jumped Processes

Algorithm 1

Construct_.
Require: ;
Set;
for to do
  ifthen
   Set by Eq. (A.8) and ;
   Set by Eq. (6) subject to boundary condition on
   with in Eq. (6) replaced by ;
   Set;
   Set by replacing in Eq. (A.9) with ;
   Set;
   ReSet;
   ReSet;
  else
   Set by Eq. (6) subject to boundary condition on
   with in Eq. (6) replaced by ;
   Set;
  end if
end for
Set;
Set
return