Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: list x matrix
From
richard boylan <[email protected]>
To
[email protected]
Subject
Re: st: list x matrix
Date
Sat, 27 Mar 2010 15:54:38 -0500
I tried "help nlpredict" but could not find this function.
On Sat, Mar 27, 2010 at 3:46 PM, Maarten buis <[email protected]> wrote:
> --- On Sat, 27/3/10, richard boylan wrote:
>> I have a list local var "x1 x2 x3 ...."
>>
>> and a 1 x n matrix (vector)
>>
>> b = (b1 b2 b3 ..)
>>
>> How do I compute the new variable
>>
>> z = b1*x1 + b2*x2 + b3*x3 + ...
>>
>> I mean I know how to do that by writing the sum, there just
>> has to be a better way of doing this.
>
> Matrix operations are usually best done in Mata. However, it
> is often not necessary to do them, e.g. the -xb()- function
> inside -nlpredict-, see -help nlpredict-.
>
> Hope this helps,
> Maarten
>
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
>
> http://www.maartenbuis.nl
> --------------------------
>
>
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/