Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: SV: RE: SV: RE: SV: RE: postfile


From   "Tomas Lind" <[email protected]>
To   <[email protected]>
Subject   st: SV: RE: SV: RE: SV: RE: postfile
Date   Fri, 27 Aug 2010 11:42:38 +0200

Yeah,

This works when I post the i (time-variable) so I suppose I am in the
vicinity of success (however I don´t understand why the full code doesn´t
work (error message r198 about the variable time).

/Tomas


clear
tempname  resul
postfile `resul'  time     using H:\Slask\slask2.dta , replace 	
						
foreach i in 6 12 18 {				
	local  time  `i'	
    post  `resul'   (`time')     
    }
postclose `resul'					

preserve
use H:\Slask\slask2.dta 	, replace	
list , noobs
restore








-----Ursprungligt meddelande-----
Från: [email protected]
[mailto:[email protected]] För Nick Cox
Skickat: den 27 augusti 2010 11:24
Till: '[email protected]'
Ämne: st: RE: SV: RE: SV: RE: postfile

I imagine that you need to look more carefully at the variable in question. 

Nick 
[email protected] 


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tomas Lind
Sent: 27 August 2010 10:22
To: [email protected]
Subject: st: SV: RE: SV: RE: postfile

I get the following error message (note, the variable time in my example
corresponds to the variable fönster in my real syntax so the error message
is about the variable fönster)



saba_L6

                                                         -- Binomial Exact
--
    Variable |        Obs        Mean    Std. Err.       [95% Conf.
Interval]
-------------+--------------------------------------------------------------
-
     saba_L6 |       3366    .0356506    .0031959        .0296445
.0424797



invalid syntax
post:  above message corresponds to expression 2, variable fönster
r(198);

end of do-file

r(198);


*
*   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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index