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

st: RE: RE: changing number of observations for tempvars


From   "Ypma, Jelmer Yeb" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: changing number of observations for tempvars
Date   Fri, 12 Nov 2004 15:52:45 -0800

Thanks, that's what I feared for. 

I want to simulate the cumulative density for a trivariate normal distributed set of variabes. This result should be used in my Maximum Likelihood estimation procedure.

I guess a solution to this problem is to simulate it by repeating my simulation more often  with less observations to obtain the desired probability. So that's what I'll find out first.

Thanks again Nick!

Jelmer 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Nick Cox
> Sent: Friday, November 12, 2004 3:41 PM
> To: [email protected]
> Subject: st: RE: changing number of observations for tempvars
> 
> 
> Absolutely not. The number of observations 
> is a property of your dataset. 
> 
> Your dataset is rectangular, with 
> dimensions 
> 
> 	number of observations X 
> 	number of variables 
> 
> If you create new temporary variables, 
> the number of observations remains 
> the same. Conversely, if you increase 
> the number of observations by using 
> -set obs-, or if you reduce the number 
> of observations by using -drop- or -keep-, 
> either change applies to _all_ variables, 
> whether permanent or temporary. 
> 
> Nick 
> [email protected] 
> 
> Ypma, Jelmer Yeb
>  
> > I'm writing an .ado file where I want to use some -tempvar-s. 
> > The number of observations for these -tempvar-s might however 
> > be different from the number of observations in the dataset.  
> > Is there a way to change just the number of observations for 
> > these temporary variables? 
> > 
> 
> *
> *   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/
> 

--------------------

This email message is for the sole use of the intended recipient(s) and
may contain privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.



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