Good evening,
i want to draw a graph bart. First i need to define a matrix but,
When I execute these codes, stata marks "invalid syntax"
start code******
local xvars mb meg rta ( all categorical variable)
local n: word count `xvars'
matrix T = J(`n', 1, .)
matrix colnames T = type_nbr
matrix rownames T = `xvars'
end code****
I'm not familiar with matrices under stata.
I would like to understand why this code doesn't work.
can we use a local to define a row or column of a matrix as I tried to do.
otherwise would anyone have any other codes to offer me?
thank you
l
Comment