Statalist


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

Re: st: Programming Stata 1 [was: jackknife and myprogram]


From   Nick Winter <nwinter@virginia.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Programming Stata 1 [was: jackknife and myprogram]
Date   Thu, 19 Nov 2009 13:55:04 -0500

The version one manual is archived here, so you could read up on it. As far as I know there are no working copies of the actual program around, though:

https://www.ats.ucla.edu/stat/sca/Stata1/default.htm

Stas Kolenikov wrote:
I am not sure even Bill Gould remembers how to program in Stata 1 even
though it should still be supported. That's what your -version 1-
command does. As to the specific reasons why -jackknife- is not
working, specify -noisily- option and see what the error messages are.

On Thu, Nov 19, 2009 at 11:42 AM, Jose Sanchez Z.
<josesanchezz@bcp.com.pe> wrote:
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 corr_t
insufficient observations to compute jackknife standard errors
no results will be saved
r(2000);
*****
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.....

Thanks,


****Myprogram
***************
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
end

jackknife nloss=r(sum), nodots saving(mgloss_t , replace): genloss pi_t corr_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 únicamente
para fines del negocio, cualquier otro uso contraviene las políticas del Banco.

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 están
prohibidas y sólo debe ser conocida por la persona a quien se dirige este mensaje.
Si Ud. ha recibido este mensaje por error por favor proceda a eliminarlo y notificar
al remitente.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/





--
--------------------------------------------------------------
Nicholas Winter                                 434.924.6994 t
Assistant Professor                             434.924.3359 f
Department of Politics                  nwinter@virginia.edu e
University of Virginia          faculty.virginia.edu/nwinter w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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