[Limdep Nlogit List] Help with basic matrix command
Yen, Steven T
syen at utk.edu
Fri Feb 27 16:42:24 EST 2009
Can somebody help me change an element of a vector? In the following, vector xbar is 4 x 1.
How can I replace the last (4th) element with "the square of the 3rd element divided by 10". Thank you!
sample ;1-30 $
create ;x1=rnp(1.2)+1 ;x2=rnp(2.1)+1 ;x3=rnp(3)+1 ;x4=x3^2/10 $
name ;x=x1,x2,x3,x4 $
matrix ;list ;xbar=mean(x) $
Steven T. Yen
<http://web.utk.edu/~syen/> Check out our postdoc opening at:
More information about the Limdep