[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: jackknife and myprogram

From   "Martin Weiss" <>
To   <>
Subject   st: RE: jackknife and myprogram
Date   Thu, 19 Nov 2009 19:31:55 +0100


It is fun to play with -version 1- though. It lacked the -program- command,
and the -display- command (see table 3 of NJC`s, and is still
able to run both. But as has been discussed often on the list, it is not the
time machnine that I make it out to be. I assume you wanted to say -version
11- ?

pr drop _all

program myprog
	version 1
	display "Hello!"



-----Original Message-----
[] On Behalf Of Jose Sanchez Z.
Sent: Donnerstag, 19. November 2009 18:42
Subject: st: jackknife and myprogram

Dear Statalist,

I am trying to join jackknife with myprogram  but this error appears:

. jackknife nloss=r(sum), nodots saving(mgloss_t , replace): genloss pi_t
insufficient observations to compute jackknife standard errors
no results will be saved
i think the problem is that "myprogram" do not allow the
if qualifier, and I don't know how to include the if qualifier in myprogram.

I hope you can help me..... 


program genloss
		version 1
		args pd cor
		*pd , cor, are variables
		local sis=invnormal(uniform())
		gen id=invnormal(uniform())
		gen aleat=`sis'*(`cor')^2 + id*(1-`cor')^2
		gen d=0
		replace d=1 if aleat <invnormal(`pd')
		gen loss=d*edi_dol*pdi_avanzado
		qui: summ loss, det
		drop id aleat d loss

jackknife nloss=r(sum), nodots saving(mgloss_t , replace): genloss pi_t


José Carlos Sánchez Zapata
Risk Methodological Service 
Banco de Crédito BCP- Peru


El sistema de correo electrónico del Banco de Crédito BCP está destinado
para fines del negocio, cualquier otro uso contraviene las políticas del

Toda la información del negocio contenida en este mensaje es confidencial y
de uso
exclusivo del Banco de Crédito BCP. Su divulgación, copia y/o adulteración
prohibidas y sólo debe ser conocida por la persona a quien se dirige este
Si Ud. ha recibido este mensaje por error por favor proceda a eliminarlo y
al remitente.

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index