Displaying 2 results from an estimated 2 matches for "patb".
Did you mean:
pat
2010 Jul 04
1
arr.ind argument to which.min and which.max
Is there a reason that 'which.min' and
'which.max' don't have an 'arr.ind'
argument?
The context in which I wanted that was
a grid search optimization, which seems
like it would be reasonably common to me.
--
Patrick Burns
pburns at pburns.seanet.com
http://www.burns-stat.com
(home of 'Some hints for the R beginner'
and 'The R Inferno')
2013 Feb 18
3
Generating QFs from same sample
...s unequal d, a is
unequal c, b is unequal d.
By slightly shuffling the same set of vectors, I generate two other similar
quadratic forms, say A_{acbd} and A_{adcb}, where the indices are again as
unequal as stated above.
In the R-code (a part of ) below, I compute these three forms using pata,
patb, patc, respectively, using kronecker products. But from the final
result of this code I get the feeling there is a difference between what I
want the code to do and what it actually does.
en <- matrix(1, n, 1)
jn <- matrix(1, n, n)
dev <- jn - diag(n)
pata <- dev%x%dev
patb...