Message-ID: <431455EB.4040306@statistik.uni-dortmund.de>
Date: 2005-08-30T12:49:47Z
From: Uwe Ligges
Subject: Who can help me?
In-Reply-To: <12760.1125405438@www70.gmx.net>
Christian Hinz wrote:
> I have own function wrote. I used an algorithm, which was written in Matlab.
>
> in matlab:
> ...
> gamma = inv(v)*g;
> ...
>
> #v = matrix of variable size, v=vv(k) => k=2 => dimension of v 2x2
> #g = a line vector with 4 elements e.g. g=[1,0,2,0];
>
> my rewritten r-file:
> ...
> gamma = solve(v)*g;
> ...
>
> which is my error? Who can help me?
Ehhh, don't know what Matlab does with the code given above.
In R:
If v is 2x2 and g has length 4, this seems to be strange, but the matrix
is treated as a vector for the multiplication step and there should not
be an error message (but probably not the result you want to get) ...
Uwe Ligges
> thank you in advance.
>
> Chris
>
>