Statalist


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

Re: st: Re: Memory


From   "Victor M. Zammit" <vmz@vol.net.mt>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Re: Memory
Date   Fri, 14 Nov 2008 18:31:57 +0100

The following is a copy and paste of what I get from my Stata when I run
program makez.,ie I get  error 198 saying  " option gweight not allowed"



.  prog makez, rclass
  1.   syntax [, obs(integer 31)]
  2.   clear
  3.   set obs `obs'
  4.   gen a = invnorm(uniform())
  5.   ttest a=0
  6.   return scalar t=r(t)
  7.  end

.  simul, reps(100000) seed(123): makez
option gweight not allowed
r(198);

I will try the -postfile- option.Thank you ,
 Victor M. Zammit

----- Original Message ----- 
From: "Nick Cox" <n.j.cox@durham.ac.uk>
To: <statalist@hsphsun2.harvard.edu>
Sent: Friday, November 14, 2008 2:42 PM
Subject: RE: st: Re: Memory


> One among various other problems is quite was the problem and why is it
> biting you. For sure -gweight- is not an option of -makez-, nor is it an
> option of -simulate-, nor has anyone else reported the same problem, so
> where is this message coming from?
>
> You still seem to have the option of using -postfile- as I suggested
> earlier.
>
> Nick
> n.j.cox@durham.ac.uk
>
> Victor M. Zammit
>
> I haven't for the past six month or so because the updating process was
> taking too long and I had to stop the process prematurely.I have Version
> 9.1.Could this program be modified a little to be compatible with
> earlier
> full updating .
>
> "Kieran McCaul" <kamccaul@meddent.uwa.edu.au>
>
> > This program works for me.
> >
> > Have you updated Stata recently?
>
> Victor M. Zammit
>
> > When I tried that program I got the error  : "option gweight not
> allowed
> > "
> > and then I gave up on it .What can I do to avoid getting that error?
>
> > . capture prog drop makez
> >
> > . prog makez, rclass
> >   1.  syntax [, obs(integer 31)]
> >   2.  clear
> >   3.  set obs `obs'
> >   4.  gen a = invnorm(uniform())
> >   5.  ttest a=0
> >   6.  return scalar t=r(t)
> >   7. end
> >
> > . simul, reps(100000) seed(123): makez
> > option gweight not allowed
> > 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index