[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Basic Matrix Definition Question

From   "Thomas Jacobs" <>
To   StataList <>
Subject   st: Basic Matrix Definition Question
Date   Mon, 15 Oct 2007 13:05:52 -0500

I am trying to create a matrix from a couple of variables.  Let's make
this simple.

I can hand enter

matrix byhand = (1,2)

but if I do

gen x =1
gen y =2
matrix byvar = (x,y)

I get x not found even though display x gives me 1.

What am I missing here and is there a workaround?  Thanks very much.



Thomas Jacobs
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index