Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060201/43e37268/attachment.pl
Suppose I have a formula mfTest = (y ~ a + b + c + d1 + d2 + d3); When I update the formula mfTest2nd = update(mfTest, .~.^2); I get all the combinations a:b, a:c, etc. But I don't want the d1:d2...
You can also try: round(runif(1)*10^4)/10^4 --Brett -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Dirk Eddelbuettel Sent: Thursday, April...
The trouble is log(0/anything) = log(0) = NaN. If you want them to evaulate to zero you might try zeroing out the values you know will be NaN: X2 = 2*sum(observed*log(observed/expected)); X2[observed==0] = 0...
You're right I had N and M defined outside of the function and rook and rsub were picking up on that. The following is a bit better and more cleaned up version with i-th order option: rook = function...
Do you have to use a loop? The following function should do what you want for the 1st order: rook = function(Y) { rsub = function(Z) { X = matrix(0,nrow(Z),ncol(Z)); X[1:(N-1),1:M] = X[1...
Can't find what you're looking for? Try searching with Google .