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 on April 23, and its replacement, is already up and running.

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

Re: st: ML Programming

From   Nick Cox <>
To   "" <>
Subject   Re: st: ML Programming
Date   Thu, 6 Jun 2013 18:04:49 +0100

You don't declare

tempname random1 random2 random3

so the statements

qui gen double `random1'=random1_`r'*`l11'
qui gen double `random2'=random2_`r'*`l22'
qui gen double `random3'=random3_`r'*`l33'

will all fail. In fact, you have other bugs of the same kind.

Also the statement

qui gen double ‘numer’=exp(`utility')

would fail because `numer' already exists.

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