Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: reading a value from a file into a scalar


To   statalist@hsphsun2.harvard.edu
Subject   Re: st: reading a value from a file into a scalar
From   Roger Newson <roger.newson@kcl.ac.uk>
Date   Thu, 06 Jun 2002 16:45:44 +0100
In-reply-to   <5.1.0.14.1.20020606162018.00a84b30@pop1.kcl.ac.uk>
References   <scff86d0.079@s-nst5.lshtm.ac.uk>
Reply-to   statalist@hsphsun2.harvard.edu
Sender   owner-statalist@hsphsun2.harvard.edu

At 16:24 06/06/02 +0100, I wrote:

Chris's best solution probably involves the -file- command, which can read values from a file directly into a scalar. Type -help file-, which should give you the answer if your version of Stata 7 dates from mid-2000 or later. (-file- is not necessarily found in Stata 7 manuals, as the first sub-version of Stata 7 didn't contain it.)
Sorry, "mid-2000" here should have been "mid-2001". There was, of course, no Stata 7 in mid-2000.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: roger.newson@kcl.ac.uk

Opinions expressed are those of the author, not the institution.

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* 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