Skip to content

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.

6 results for “from:Pontarelli, Brett”

Computing s^2 for non-negative least squares.
Pontarelli, Brett · Feb 1, 2006 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060201/43e37268/attachment.pl

Removing specific v1:v2 combinations from a formula.
Pontarelli, Brett · Jan 31, 2006 · r-help

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...

how to control the data type
Pontarelli, Brett · Apr 21, 2006 · r-help

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...

calculating goodness-of-fit statistics
Pontarelli, Brett · Jan 31, 2006 · r-help

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...

Matrix indexing in a loop
Pontarelli, Brett · Feb 17, 2006 · r-help

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...

Matrix indexing in a loop
Pontarelli, Brett · Feb 17, 2006 · r-help

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 .