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

st: Simulation and ML

From   "miguel foguel" <[email protected]>
To   [email protected]
Subject   st: Simulation and ML
Date   Thu, 25 Mar 2004 15:59:50 +0000

Dear all,

I'm trying to implement a Monte Carlo experiment using ML procedures in Stata. I'm structuring my code in 3 parts. The first program contains -postfile- and -postclose-, and in between them I call my second and third programs. The second is for creating the data set, and the third is where I code the ML procedure using method d0 (and include the -post- of the results). This structure is somewhat similar to the one presented in NetCourse 151, p. 105.

The problem is that when Stata reaches the ML program it issues an error message ", invalid name", which, after setting trace on, I found out to be related to the fact that the `b' macro defined in -args todo b lnf- doesn't show up in the -mleval- part of the code.

Why is that? Does anyone knows how to fix this problem? Thanks in advance.


Miguel Foguel

Use MSN Messenger to send music and pics to your friends

* For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index