OK, here is my not so neat solution.  I'll welcome any suggestions....

<>
clear
open broiler
list xlist = const 2 3 4 5
list ylist = Q
matrix X = { xlist }
matrix y = Q  
b=mols(y,X)

K=cols(X)
string sall = null
    loop i=1..K
        sprintf se "x%d", i
        string s =  "@se "
        string sall += s 
endloop

rownames(b," @sall ")
b
<>

Cheers,
Lee





On Sat, Mar 30, 2013 at 11:30 AM, Lee Adkins <lee.adkins@okstate.edu> wrote:
Well, I may have stumbled on a solution.  What I get it to work, I'll post it.

Cheers,
Lee


On Sat, Mar 30, 2013 at 10:55 AM, Lee Adkins <lee.adkins@okstate.edu> wrote:
I'm stumped on this one. I want to be able to automate the creation of a results table that does not contain t-ratios or pvalues (or be able to suppress the t-ratio and pvalues in modprint). 

varname(xlist) produces a string with commas separating the names, but the rownames command wants spaces instead of commas. So far I haven't been able to get a proper string to use with rownames using loops.  

<>
open broiler
list xlist = const 2 3 4 5
matrix X = { xlist }
vn = varname(xlist)
vn
<>

This produces the string that contains commas:

const,Y,PCHICK,PBEEF,PCOR

But what I need is something of the form, 

rownames(coeffs, "Y PCHICK PBEEF PCOR")

which does not contain commas. 

Any hints?  

Lee



-- 
Lee Adkins
Professor of Economics
lee.adkins@okstate.edu

learneconometrics.com



--
Lee Adkins
Professor of Economics
lee.adkins@okstate.edu

learneconometrics.com



--
Lee Adkins
Professor of Economics
lee.adkins@okstate.edu

learneconometrics.com