Displaying 20 results from an estimated 208 matches for "hdoran".
Did you mean:
doran
2018 Mar 13
2
Possible Improvement to sapply
...t; | grep
-F "/R/" | wc
69 326 5472
and another 59 where isTRUE() can be used:
$ grep -E "identical[(][^,]+,[ ]*TRUE[)]" -r --include="*.R" | grep -F
"/R/" | wc
59 307 5021
/Henrik
On Tue, Mar 13, 2018 at 9:21 AM, Doran, Harold <HDoran at air.org> wrote:
> Quite possibly, and I?ll look into that. Aside from the work I was doing, however, I wonder if there is a way such that sapply could avoid the overhead of having to call the identical function to determine the conditional path.
>
>
>
> From: William Dunlap [ma...
2018 Mar 13
0
Possible Improvement to sapply
...ide from the work I was doing, however, I wonder if there is a way such that sapply could avoid the overhead of having to call the identical function to determine the conditional path.
From: William Dunlap [mailto:wdunlap at tibco.com]
Sent: Tuesday, March 13, 2018 12:14 PM
To: Doran, Harold <HDoran at air.org>
Cc: Martin Morgan <martin.morgan at roswellpark.org>; r-help at r-project.org
Subject: Re: [R] Possible Improvement to sapply
Could your code use vapply instead of sapply? vapply forces you to declare the type and dimensions
of FUN's output and stops if any call to FUN do...
2018 Mar 13
1
Possible Improvement to sapply
You?re right, it sure does. My suggestion causes it to fail when simplify = ?array?
From: William Dunlap [mailto:wdunlap at tibco.com]
Sent: Tuesday, March 13, 2018 12:11 PM
To: Doran, Harold <HDoran at air.org>
Cc: r-help at r-project.org
Subject: Re: [R] Possible Improvement to sapply
Wouldn't that change how simplify='array' is handled?
> str(sapply(1:3, function(x)diag(x,5,2), simplify="array"))
int [1:5, 1:2, 1:3] 1 0 0 0 0 0 1 0 0 0 ...
> str(sapply(1:3...
2018 Mar 14
0
Possible Improvement to sapply
...t later today.
Interestingly and to my great pleasure, the first part of the
'Subject' of this mailing list thread, "Possible Improvement",
*has* become true after all --
-- thanks to Henrik !
Martin Maechler
ETH Zurich
> On Tue, Mar 13, 2018 at 9:21 AM, Doran, Harold <HDoran at air.org> wrote:
> > Quite possibly, and I?ll look into that. Aside from the work I was doing, however, I wonder if there is a way such that sapply could avoid the overhead of having to call the identical function to determine the conditional path.
> >
> >
> >
> >...
2018 Mar 13
1
Possible Improvement to sapply
...FUN does not match the
declaration. It can use much less
memory and time than sapply because it fills in the output array as it goes
instead of calling lapply()
and seeing how it could be simplified.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Mar 13, 2018 at 7:06 AM, Doran, Harold <HDoran at air.org> wrote:
> Martin
>
> In terms of context of the actual problem, sapply is called millions of
> times because the work involves scoring individual students who took a
> test. A score for student A is generated and then student B and such and
> there are millions of s...
2018 Mar 13
2
Possible Improvement to sapply
...o that. But your point is well taken, there may be a very good counterexample why my proposal doesn't achieve the goal is a generalizable way.
-----Original Message-----
From: Martin Morgan [mailto:martin.morgan at roswellpark.org]
Sent: Tuesday, March 13, 2018 9:43 AM
To: Doran, Harold <HDoran at air.org>; 'r-help at r-project.org' <r-help at r-project.org>
Subject: Re: [R] Possible Improvement to sapply
On 03/13/2018 09:23 AM, Doran, Harold wrote:
> While working with sapply, the documentation states that the simplify
> argument will yield a vector, matrix etc...
2018 Mar 13
0
Possible Improvement to sapply
...0 0 ...
> str(sapply(1:3, function(x)diag(x,5,2), simplify=FALSE))
List of 3
$ : int [1:5, 1:2] 1 0 0 0 0 0 1 0 0 0
$ : int [1:5, 1:2] 2 0 0 0 0 0 2 0 0 0
$ : int [1:5, 1:2] 3 0 0 0 0 0 3 0 0 0
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Mar 13, 2018 at 6:23 AM, Doran, Harold <HDoran at air.org> wrote:
> While working with sapply, the documentation states that the simplify
> argument will yield a vector, matrix etc "when possible". I was curious how
> the code actually defined "as possible" and see this within the function
>
> if (!identic...
2007 Jan 24
4
Replace missing values in lapply
I have some matrices stored as elements in a list that I am working
with. On example is provided below as TP[[18]]
> TP[[18]]
level2
level1 1 2 3 4
1 79 0 0 0
2 0 0 0 0
3 0 0 0 0
4 0 0 0 0
Now, using prop.table on this gives
> prop.table(TP[[18]],1)
level2
level1 1 2 3 4
1 1 0 0 0
2
3
2008 Aug 01
1
Major difference in the outcome between SPSS and R statisticalprograms
...5% CI of
> 6,295-14,056. Then the p-value must be <0.05 doesn't it?
> For age the OR's differ dramatically between SPSS and R,
> 0.985 and 0.003.
>
> I just can not explain it.
>
> Ronald
>
> -----Oorspronkelijk bericht-----
> Van: Doran, Harold [mailto:HDoran at air.org]
> Verzonden: vrijdag 1 augustus 2008 17:36
> Aan: Draga, R.; r-help at r-project.org
> Onderwerp: RE: [R] Major difference in the outcome between
> SPSS and R statisticalprograms
>
>
> The biggest problem is that SPSS cannot fit a generalized linear mixed
> mo...
2018 Mar 13
4
Possible Improvement to sapply
While working with sapply, the documentation states that the simplify argument will yield a vector, matrix etc "when possible". I was curious how the code actually defined "as possible" and see this within the function
if (!identical(simplify, FALSE) && length(answer))
This seems superfluous to me, in particular this part:
!identical(simplify, FALSE)
The preceding
2011 Nov 23
2
lines and points in xyplot()
Given the following data, I want a scatterplot with the data points and the predictions from the regression.
Sigma <- matrix(c(1,.6,1,.6), 2)
mu <- c(0,0)
dat <- mvrnorm(5000, mu, Sigma)
x <- dat[,1] * 50 + 200
y <- dat[,2] * 50 + 200
fm <- lm(y ~ x)
### This gives the regression line, but not the data
xyplot(y ~ x,
type = c('g', 'p'),
2007 May 05
0
[SPAM] - Re: R package development in windows - BayesianFilter detected spam
...ool to use to create the executable.
-----Original Message-----
From: "Duncan Murdoch" <murdoch at stats.uwo.ca>
To: "Greg Snow" <Greg.Snow at intermountainmail.org>
Cc: "Gabor Grothendieck" <ggrothendieck at gmail.com>; "Doran, Harold" <HDoran at air.org>; "r-help at stat.math.ethz.ch" <r-help at stat.math.ethz.ch>
Sent: 5/4/07 4:46 PM
Subject: Re: [R] [SPAM] - Re: R package development in windows - BayesianFilter detected spam
On 04/05/2007 4:25 PM, Greg Snow wrote:
> I have used the pp/par combination for Perl be...
2010 Aug 17
3
R Send an Email
Just out of curiosity, has anyone ever written a function that sends an email to you when an R process has finished? For instance, I often work with very large data sets and certain tasks (e.g., merging records, lmer runs) can take a long time and I find myself constantly looking over to see if R is done.
But, it would just be neat if there was a way R could send me an email alerting me that a
2004 Aug 04
4
Concatenating variables
Hi all:
I'm having difficulty with something I believe is very simple, but I'm
stuck. I have a large data frame that took days to clean and prepare.
All I now need to do is concatenate three variables into a single
column. For example, I have tenn$up, tenn$down, and tenn$stable which
all have values of 1 or 0. I simply want to put all three columns
together to create a pattern (e.g.,
2005 Oct 26
1
R-help Digest, Vol 32, Issue 26
...rrent version) just puts an upper bound on the df. But that should be OK, because all those t tests are approximations anyways, and you can get better confidence
intervals (credible intervals, whatever) by using the mcmcsamp() function that works with lmer()
alan
>
"Doran, Harold" <HDoran at air.org> responded:
>
>
>>There is an issue with implicit nesting in lmer. In your lme() model you nest
>>block/irrigation/density/fertilizer. In lmer you need to do something like
>>(I dind't include all of your variables, but I think the makes the point)
>>...
2010 Mar 10
2
help R non-parametric IRT simulation
Hello R,
I am looking for non-parametric simulation in IRT. Is there any IRT
package that does non-parametric simulation?
helen L
[[alternative HTML version deleted]]
2005 Dec 05
4
Broken links on CRAN
Dear List:
When I click on the link to download a reference manual for a package on
cran, I get an error message that the file is damaged and could not be
repaired. I randomly chose various packages and the same error message
appears.
Are the links actually broken? I have also restarted my machine and
closed and re-opened acrobat.
I am using Windows XP, Acrobat Professional 6.0.0.5, and
2006 Jul 19
4
Wrap a loop inside a function
I need to wrap a loop inside a function and am having a small bit of
difficulty getting the results I need. Below is a replicable example.
# define functions
pcm <- function(theta,d,score){
exp(rowSums(outer(theta,d[1:score],'-')))/
apply(exp(apply(outer(theta,d, '-'), 1, cumsum)), 2, sum)
}
foo <- function(theta,items, score){
like.mat <-
2006 May 16
2
Interrater and intrarater variability (intraclass correlationcoefficients)
It sounds as thought you are interested in Hoyt's Anova which is a form
of generalizability theory. This is usually estimated using by getting
the variance components from ANOVA.
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Karl Knoblick
> Sent: Tuesday, May 16, 2006 6:10 AM
> To: r-help at
2003 Sep 29
3
Downloading LME4?
Dear R:
Am I having trouble downloading the LME4 library. I am using Windows and am using ver 1.7 I have tried the following:
1) Install package from CRAN, but LME4 is not listed
2) Downloaded LME4 from http://cran.us.r-project.org/, however, I cannot open the file when I try install from local drive. I get the following error:
Error in file(file, "r") : unable to open connection