Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: varnorm: rejection of the null hypothesis


From   Richard Williams <[email protected]>
To   [email protected], [email protected]
Subject   Re: st: varnorm: rejection of the null hypothesis
Date   Tue, 22 Jul 2008 09:13:11 -0500

At 06:21 AM 7/22/2008, Javier L�zaro wrote:
Dear Statalist users,

I am a beginner programmer of Stata, I am doing an ado file where I
have to use the jacknife command, but I can�t use an expresion like
"jknife r(mean) : sum c1" in an .ado file, because when I am going to
execute it, it generates the error: "invalid syntax".
What can I do? I can execute all the differents commands except the
jacknife command in my ado files.

Thank you,
Javier
Works for me. Are you sure there isn't an error somewhere else? Show more of the commands you are giving, and/or make sure Stata is up to date.

Here is test1.ado

program test1
sysuse auto
jknife r(mean): sum price
end

Here is what happens when you run it:

. test1
(1978 Automobile Data)
(running summarize on estimation sample)

Jackknife replications (74)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
.................................................. 50
........................

Jackknife results Number of obs = 74
Replications = 74

command: summarize price
_jk_1: r(mean)
n(): r(N)

------------------------------------------------------------------------------
| Jackknife
| Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
_jk_1 | 6165.257 342.8718 17.98 0.000 5481.914 6848.599
------------------------------------------------------------------------------



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam


*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index