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, 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 <>
Subject   st: max length of 244 characters
Date   Tue, 13 Jul 2010 17:24:43 +0200


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 ?



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)


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

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

*   For searches and help try:

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