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]

st: max length of 244 characters


From   SCHOUMAKER Bruno <bruno.schoumaker@uclouvain.be>
To   statalist@hsphsun2.harvard.edu
Subject   st: max length of 244 characters
Date   Tue, 13 Jul 2010 17:24:43 +0200

Hello,

I want to create a macro containing a list of expressions to compute using jackknife.

TFR_t is the macro containg the list of expressions, based on the macro TFR (see example below)

The problem is that the macro seems to limited to 244 characters : `TFR_t' is truncated to 244 characters.

Is there a way to store a longer string expression ?

Thanks

Bruno

****
local TFR="(5*(exp(_b[_cons])+exp(_b[_Iageg_5]+_b[_cons])+exp(_b[_Iageg_6]+_b[_cons])+exp(_b[_Iageg_7]+_b[_cons])+exp(_b[_Iageg_8]+_b[_cons])+exp(_b[_Iageg_9]+_b[_cons])+exp(_b[_Iageg_10]+_b[_cons])))"

forval i = 1(1)`maxtr' {
local mult`i'= " *exp(_b[_Itrendv_`i']) "
local TFRj`i'="TotFR`i'=(" + "`TFR'" + "`mult`i''" + ") "
local TFR_t="`TFR_t'"+"`TFRj`i''"
}

xi : jackknife "`TFR_t'", cluster("`cluster'") : poisson _d i.ageg i.trendv `if', exposure(exposy)
***

--
Bruno SCHOUMAKER

Centre de recherche en démographie et sociétés
Université catholique de Louvain
1-17 PLace Montesquieu
1348 Louvain-la-Neuve
BELGIUM

Tel. +32 10 474136
Fax. +32 10 472952

bruno.schoumaker@uclouvain.be
www.uclouvain.be/demo

*
*   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   |   Site index