
From  Kit Baum <baum@bc.edu> 
To  statalist@hsphsun2.harvard.edu 
Subject  st: Re: generating a matrix 
Date  Mon, 22 May 2006 08:20:49 0400 
I realised that i was not very clear with my question and my sincere
apologies.
I will try and be clear.
1. First of all, both of you are correct. I want to generate the following
input price matrix (not vector) with 326 rows: Input1, Input2 and Input3 are
values that I have calculated elsewhere and would like to insert these to
look like
input1 input2 input3
33.12 156 227.8
33.12 156 227.8
33.12 156 227.8
.
.
.
.
.
until the 326th row.
So I am requesting information on how to generate this matrix.
2. I would like to add the column values from 1 to n(=326). What should I
look for in help to generate this. This is what I would like to do
Plot Area
1 2
2 10
3 5.5
4 22
5 3
Generate Totalarea(a scalar?)=2+10+5.5+22+3=47.5
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2016 StataCorp LP  Terms of use  Privacy  Contact us  What's new  Site index 