Dynamic evaluation of prognosis from time-dependent variables in acute myocardial infarction