Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Mkmat doesn't seem to store the observation values correctly?


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Mkmat doesn't seem to store the observation values correctly?
Date   Sun, 21 Oct 2012 10:50:22 +0100

You don't show us your original variable, so we can't see any grounds
for your claim.

Nick

On Sun, Oct 21, 2012 at 9:44 AM, Tim Streibel <Tim.Streibel@gmx.de> wrote:
> First of all, I am sure that mkmat stores the values correctly, but I dont know in which way it stores them.
>
> All I want to do is creating a matrix from a variable of my dataset (even only 1xT format). However if I use mkmat, matrix list does not yield the original values of my variable (as you can see below). Since I would like to do some calculations with the created matrix, I would like to check whether the matrix contains the correct values.
>
>
> mkmat Ticker, matrix(X)
>
> . matrix list X
>
> X[9,1]
>     Ticker
> r1       8
> r2       9
> r3       2
> r4       1
> r5       5
> r6       4
> r7       7
> r8       3
> r9       6

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index