Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: how can I use noof obs in Syntax


From   Daniel Feenberg <feenberg@nber.org>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: how can I use noof obs in Syntax
Date   Wed, 24 Oct 2012 07:01:14 -0400 (EDT)


On Wed, 24 Oct 2012, rasool.bux wrote:

How I can use as an option in Syntax noobs(integer _N) is giving a syntax error.

syntax varlist(min=2) [if] [in] [, REPS(integer 50) noobs(integer _N) seed(integer 1) ]

I don't think you can modify _N. You need a different name. It isn't clear why you would have picked that name - it already has the value of the number of observations - did you want the .ado to choose a subset?

daniel feenberg
NBER


Thanks
Rasool Bux

________________________________

This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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