Displaying 20 results from an estimated 22 matches for "timhesterberg".
2010 Nov 03
3
Using sample() to sample one value from a single value?
Hi, consider this one as an FYI, or a seed for further discussion.
I am aware that many traps on sample() have been reported over the
years. I know that these are also documents in help("sample"). Still
I got bitten by this while writing
sample(units, size=length(units));
where 'units' is an index (positive integer) vector. It works in all
cases as expected (=I expect)
2013 Apr 14
1
R 3.0.0 memory use
...I'm getting astounding results - many more copies,
# and also some copies of larger objects; in addition to the data
# vectors of size 80K and 160K, also 240K and 320K.
# Where three numbers are given in form a;c;d, they refer to
# (copies of 80K; 240K; 320K)
The benchmarks are at
http://www.timhesterberg.net/r-packages/memory.R
I'm using versions of R I installed from source on a Linux box, using e.g.
./configure --prefix=(my path) --enable-memory-profiling --with-readline=no
make
make install
2010 Nov 14
2
jackknife-after-bootstrap
Hi dear all,
Can someone help me about detection of outliers using jackknife after
bootstrap algorithm?
--
View this message in context: http://r.789695.n4.nabble.com/jackknife-after-bootstrap-tp3041634p3041634.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version deleted]]
2005 Nov 09
0
R CMD Rdconv file.Rd --type=Ssgm \code{x} should use <code> (PR#8290)
...=========================
Download the S+Resample library from www.insightful.com/downloads/libraries
Two Research Scientist positions:
data mining
frailty/mixed effects
http://www.insightful.com/company/jobs.asp
Speak out about biased science in Washington D.C.
http://home.comcast.net/~timhesterberg/ScientificIntegrity.html
2012 May 22
0
dataframe package
...ric columns and leaves the factor columns unchanged, rather
than failing.
Tim Hesterberg
NEW! Mathematical Statistics with Resampling and R, Chihara & Hesterberg
http://www.amazon.com/Mathematical-Statistics-Resampling-Laura-Chihara/dp/1118029852/ref=sr_1_1?ie=UTF8
http://home.comcast.net/~timhesterberg
(resampling, water bottle rockets, computers to Costa Rica, shower = 2650 light bulbs, ...)
_______________________________________________
R-packages mailing list
R-packages at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages
2008 Jun 11
0
[ESS] browser() exits when not desired, in three different scenarios (PR#11634)
Tim, I have reported some similar issues a while back and there was
some discussion on this topic:
http://tolstoy.newcastle.edu.au/R/devel/06/03/4609.html
Good luck,
Kevin
On Tue, Jun 10, 2008 at 6:47 PM, Tim Hesterberg <timhesterberg at gmail.com> wrote:
> Here are three different scenarios in which the browser() exits
> when I don't want it to. These are all related to the browser
> accepting either c or (return) to exit. I would like an option
> to turn off the (return) behavior in order to avoid these pr...
2012 Sep 11
1
boot() with glm/gnm on a contingency table
Hi everyone!
In a package I'm developing, I have created a custom function to get
jackknife standard errors for the parameters of a gnm model (which is
essentially the same as a glm model for this issue). I'd like to add
support for bootstrap using package boot, but I couldn't find how to
proceed.
The problem is, my data is a table object. Thus, I don't have one
individual per
2010 Nov 04
2
How to do bootstrap for the complex sample design?
Hello;
Our survey is structured as : To be investigated area is divided into 6 regions,
within each region, one urban community and one rural community are randomly selected,
then samples are randomly drawn from each selected uran and rural community.
The problems is that in urban/rural stratum, we only have one sample.
In this case, how to do bootstrap?
Any comments or hints are greatly
2008 Aug 22
1
save() should not overwrite a file if an error occurs (PR#12583)
If save() fails because an object is not found,
it should not overwrite an existing file.
> a <- 1:9
> save(a, file = "a.rda")
> rm(a)
> load("a.rda")
> a
[1] 1 2 3 4 5 6 7 8 9
> rm(a)
> save(a, file = "a.rda")
Error in save(a, file = "a.rda") : object 'a' not found
> load("a.rda")
Error in
2012 Jun 06
2
suggest that as.double( something double ) not make a copy
I've been playing with passing arguments to .C(), and found that replacing
as.double(x)
with
if(is.double(x)) x else as.double(x)
saves time and avoids one copy, in the case that x is already double.
I suggest modifying as.double to avoid the extra copy and just
return x, when x is already double. Similarly for as.integer, etc.
[[alternative HTML version deleted]]
2005 Nov 29
2
permutation test for linear models with continuous covariates
Hi I was wondering if there is a permutation test available in R for linear
models with continuous dependent covariates. I want to do a test like the
one shown here.
bmi<-rnorm(100,25)
x<-c(rep(0,75),rep(1,25))
y<-rnorm(100)+bmi^(1/2)+rnorm(100,2)*x+bmi*x
H0<-lm(y~1+x+bmi)
H1<-lm(y~1+x+bmi+x*bmi)
anova(H0,H1)
summary(lm(y~1+x+bmi))
But I want to use permutation testing to
2005 Nov 18
3
Method for $
Dear R experts,
I have defined a class "myclass" and would like the slots to be extractable
not only by "@" but also by "$". I now try to write a method for "$" that
simply executes the request object at slotname, whenever someone calls
object$slotname for any object of class "myclass".
I don't manage to find out how I can provide this
2008 Jul 01
1
[.data.frame speedup
Below is a version of [.data.frame that is faster
for subscripting rows of large data frames; it avoids calling
duplicated(rows)
if there is no need to check for duplicate row names, when:
i is logical
attr(x, "dup.row.names") is not NULL (S+ compatibility)
i is numeric and negative
i is strictly increasing
"[.data.frame" <-
function (x, i, j,
2011 May 15
5
Question on approximations of full logistic regression model
Hi,
I am trying to construct a logistic regression model from my data (104
patients and 25 events). I build a full model consisting of five
predictors with the use of penalization by rms package (lrm, pentrace
etc) because of events per variable issue. Then, I tried to approximate
the full model by step-down technique predicting L from all of the
componet variables using ordinary least squares
2006 Mar 24
0
enhancement request for browser (PR#8706)
I would like a way to modify the behavior of browser(), so that
entering a blank line does nothing rather than being equivalent to "c".
I'm running R using emacs ESS.
I often debug functions by inserting a browser, and stepping through
one line at a time, sending a line at a time from a buffer with
the function to the R buffer.
But every time I send a blank line, the browser
2008 Jun 10
0
browser() exits when not desired, in three different scenarios (PR#11623)
Here are three different scenarios in which the browser() exits
when I don't want it to. These are all related to the browser
accepting either c or (return) to exit. I would like an option
to turn off the (return) behavior in order to avoid these problems.
# Case 1 - when calling help
# Note, I am using ESS in emacs; this is probably an interaction
# with ESS handling of ? help.
> f
2009 Jul 14
0
Faster as.data.frame & save copy by doing names(x) <- NULL only if needed
A number of as.data.frame methods do
names(x) <- NULL
Replacing that with
if(!is.null(names(x)))
names(x) <- NULL
appears to save making one copy of the data
(based on tracemem and Rprofmem in a copy of R compiled
with --enable-memory-profiling)
and gives a modest but consistent boost in speed, e.g.:
# old new
# user system
2009 Oct 02
1
suggest enhancement to segments and arrows to facilitate horizontal and vertical segments
I suggest a simple enhancement to segments() and arrows() to
facilitate drawing horizontal and vertical segments --
set default values for the second x and y arguments equal to the first set.
This is handy, especially when the expressions for coordinates are long.
Compare:
Segments:
< function (x0, y0, x1 = x0, y1 = y0, col = par("fg"), lty = par("lty"),
---
> function
2012 Sep 07
1
Need to tell R CMD check that a function qr.R is not a method
When creating a package, I would like a way to tell R that
a function with a period in its name is not a method.
I'm writing a package now with a modified version of qr.R.
R CMD check gives warnings:
* checking S3 generic/method consistency ... WARNING
qr:
function(x, ...)
qr.R:
function(qr, complete, pivot)
See section ‘Generic functions and methods’ of the ‘Writing R
Extensions’
2012 Sep 07
1
Suggest adding a 'pivot' argument to qr.R
I suggest adding a 'pivot' argument to qr.R, to obtain columns in the
same order as the original x, so that
a <- qr(x)
qr.Q(a) %*% qr.R(a, pivot=TRUE)
returns x.
--------------------------------------------------
# File src/library/base/R/qr.R
qr.R <- function(qr, complete = FALSE, pivot = FALSE)
{
# Args:
# qr: a QR decomposition, produced by qr()
# complete: