Displaying 2 results from an estimated 2 matches for "covxi".
Did you mean:
covxy
2005 Oct 05
1
(no subject)
hi all
why does the following not work???
this was someone elses code and i couldnt explain why it doesn't work.
m=matrix(c(0,0),2,1)
v=matrix(c(1,0,0,1),2,2)
Y=function(X1,X2,mu=m,V=v)
{
X=matrix(c(X1,X2),2,1)
a=(1/((2*pi)*sqrt(det(V))))*exp((-0.5)*(t(X-mu)%*%solve(V)%*%(X-mu)))
a[1]
}
x1=seq(-1,1)
x2=x1
Z=outer(x1,x2,FUN="Y",mu=m,V=v)
persp(x1,x2,Z)
my code:
2004 Oct 28
2
array problem and for looping
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20041028/dbf887a9/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: random1.txt
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20041028/dbf887a9/random1.txt