/*
	predict (after ztp)

*!  VERSION 1.1.0  20apr2007

*/

VERSION 9.0

INCLUDE _std_medium  // ** set POSTINIT to match

INCLUDE _ht260
INCLUDE header

HELP hlp1, view("help ztp postestimation")
RESET res1

SCRIPT POSTINIT
BEGIN
	script _p_gentype_setMedium
END

DIALOG main, label("predict - Prediction after estimation") tabtitle("Main")
BEGIN
  INCLUDE  _p_gentype

  GROUPBOX gb_opts           _lft      _ls       _iwd      _ht12,	/*
		*/ label("Produce:")
  RADIO    rb_n              _indent   _ss       _inwd     ., first	/*
		*/ option(n)						/*
		*/ onclickon(script _p_gentype_scores_off)		/*
		*/ label("Number of events")
  RADIO    rb_ir             @         _ss       @         .,		/*
		*/ option(ir)						/*
		*/ onclickon(script _p_gentype_scores_off)		/*
		*/ label("Incidence rate")
  RADIO    rb_cm             @	       _ss       @         .,           /*
                */ option(cm)						/*
		*/ onclickon(script _p_gentype_scores_off)		/*
                */ label("Conditional mean of y, given y>0")
  RADIO    rb_xb             @         _ss       @         .,		/*
		*/ option(xb)						/*
		*/ onclickon(script _p_gentype_scores_off)		/*
		*/ label("Linear prediction")
  RADIO    rb_stdp           @         _ss       @         .,     	/*
		*/ option(stdp)						/*
		*/ onclickon(script _p_gentype_scores_off)		/*
		*/ label("Standard error of the linear prediction")
  RADIO    rb_score          @         _ss       @         ., last	/*
		*/ option(scores)					/*
		*/ onclickon(script _p_gentype_scores_on)		/*
		*/ label("Equation-level scores")
  INCLUDE  _p_nooffset
END

INCLUDE _p_gentype_sc
INCLUDE ifin
INCLUDE _type_list_fd

PROGRAM command
BEGIN
	put "predict "
	put " " /program _p_gentype_output
	INCLUDE _ifin_pr
	beginoptions
		option radio(main rb_n rb_ir rb_cm rb_xb rb_stdp rb_score)
	endoptions
	INCLUDE _p_nooffset_pr
END
