Time_to_event_Model_dat = dataObj{

   DECLARED_VARIABLES{ Y::observation }

   DATA_INPUT_VARIABLES{
      ID: {use is id}
      TIME: {use is idv}
      TRT: {use is covariate}
      AMT: {use is ignore }
      RATE: {use is covariate}
      ADDL: {use is ignore}
      II: {use is ignore}
      WT: {use is ignore}
      DVID: {use is dvid}
      DV: {use is dv, variable=Y}
      MDV: {use is mdv}
      REP: {use is covariate}
      CPX: {use is covariate}
      PCAX: {use is covariate}
      INRX: {use is covariate}
      ICL: {use is covariate}
      IV: {use is covariate}
      ITABS: {use is covariate}
      ITLAG: {use is covariate}
      IF1: {use is covariate}
      IPCA0: {use is covariate}
      IEMAX: {use is covariate}
      IC50: {use is covariate}
      ITEQ: {use is covariate}
      NEVT: {use is covariate}
   }# end DATA_INPUT_VARIABLES

   SOURCE{
      srcFile : {file="warfarin_TTE_exact.csv",
      			inputFormat is nonmemFormat}
   }# end SOURCE
} # end data object

Time_to_event_Model_par = parObj{
   STRUCTURAL{
   	beta: {value=1}
   	lambda: {value=1}
   }# end STRUCTURAL
} # end of parameter object

Time_to_event_Model_mdl = mdlObj{
	IDV { T }

   VARIABILITY_LEVELS{
	DV : { level=1, type is observation }
   }

   STRUCTURAL_PARAMETERS{
	  beta
	  lambda
   }# end STRUCTURAL_PARAMETERS

   MODEL_PREDICTION{
	  HAZ = (beta/lambda) * (T/lambda) ^ (beta-1)
   }# end MODEL_PREDICTION

   OBSERVATION{
     Y : {type is tte, hazard = HAZ }
   }# end ESTIMATION

} # end of model object

Time_to_event_Model_task = taskObj{
 	ESTIMATE {
	set algo is saem
	} #end ESTIMATE  
}# end of task object

Time_to_event_Model_mog = mogObj {
	OBJECTS{
		Time_to_event_Model_dat : {type is dataObj}
		Time_to_event_Model_mdl : {type is mdlObj}
		Time_to_event_Model_par : {type is parObj}
		Time_to_event_Model_task : {type is taskObj}
	}
}
