Re: [R] odfWeave - A loop of the "same" data

2017-06-01 Thread Charles C. Berry
On Thu, 1 Jun 2017, POLWART, Calum (COUNTY DURHAM AND DARLINGTON NHS FOUNDATION TRUST) via R-help wrote: Before I go and do this another way - can I check if anyone has a way of looping through data in odfWeave (or possibly sweave) to do a repeating analysis on subsets of data? For simplicit

Re: [R] Data import R: some explanatory variables not showing up correctly in summary

2017-06-01 Thread Charles C. Berry
EASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry Dept of Family Medicine & Public Health cberry at ucsd edu UC San Diego /

Re: [R] Determining which.max() within groups

2017-06-07 Thread Charles C. Berry
On Tue, 6 Jun 2017, Morway, Eric wrote: Using the dataset below, I got close to what I'm after, but not quite all the way there. Any suggestions appreciated: Daily <- read.table(textConnection(" Date wyrQ 1911-04-01 1990 4.530695 1911-04-02 1990 4.700596 1911-04-03 1990 4.898814 1

Re: [R] fitting cosine curve

2017-06-20 Thread Charles C. Berry
On Tue, 20 Jun 2017, lily li wrote: Hi R users, I have a question about fitting a cosine curve. I don't know how to set the approximate starting values. See Y.L. Tong (1976) Biometrics 32:85-94 The method is known as `cosinor' analysis. It takes advantage of the *intrinsic* linear

Re: [R] fitting cosine curve

2017-06-21 Thread Charles C. Berry
what I'm calling amplitude, the d and f are what I'm calling phase. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

Re: [R] How to identify runs or clusters of events in time

2016-07-01 Thread Charles C. Berry
See below On Fri, 1 Jul 2016, Mark Shanks wrote: Hi, Imagine the two problems: 1) You have an event that occurs repeatedly over time. You want to identify periods when the event occurs more frequently than the base rate of occurrence. Ideally, you don't want to have to specify the perio

Re: [R] How to make the "apply" faster

2016-07-09 Thread Charles C. Berry
On Sat, 9 Jul 2016, Debasish Pai Mazumder wrote: I have 4-dimension array x(lat,lon,time,var) I am using "apply" to calculate over time new = apply(x,c(1,2,4),FUN=function(y) {length(which(y>=70))}) This is very slow. Is there anyway make it faster? If dim(x)[3] << prod(dim(x)[-3]), new <-

Re: [R] Help with big data and parallel computing: 500, 000 x 4 linear models

2016-08-08 Thread Charles C. Berry
On Mon, 8 Aug 2016, Ellis, Alicia M wrote: I have a large dataset with ~500,000 columns and 1264 rows. Each column represents the percent methylation at a given location in the genome. I need to run 500,000 linear models for each of 4 predictors of interest in the form of: Methylation.stie

Re: [R] Improve code efficient with do.call, rbind and split contruction

2016-09-02 Thread Charles C. Berry
On Fri, 2 Sep 2016, Bert Gunter wrote: [snip] The "trick" is to use tapply() to select the necessary row indices of your data frame and forget about all the do.call and rbind stuff. e.g. I agree the way to go is "select the necessary row indices" but I get there a different way. See below.

Re: [R] Improve code efficient with do.call, rbind and split contruction

2016-09-03 Thread Charles C. Berry
On Sat, 3 Sep 2016, Bert Gunter wrote: Chuck et. al.: As I said previously, my intuition about the relative efficiency of tapply() and duplicated() in the context of this thread was wrong. My `intuition' was wrong, too. But tapply() uses split() which runs quite fast. So not a big surprise,

Re: [R] Programming R to avoid loops

2015-04-18 Thread Charles C. Berry
On Sat, 18 Apr 2015, Brant Inman wrote: I have two large data frames with the following structure: df1 id date test1.result 1 a 2009-08-28 1 2 a 2009-09-16 1 3 b 2008-08-06 0 4 c 2012-02-02 1 5 c 2010-08-03 1 6 c 2012-08-02 0 df2 id date te

Re: [R] Do grep() and strsplit() use different regex engines?

2015-07-11 Thread Charles C. Berry
On Sat, 11 Jul 2015, Bert Gunter wrote: David/Jeff: Thank you both. You seem to confirm that my observation of an "infelicity" in strsplit() is real. That is most helpful. I found nothing in David's message 2 code that was surprising. That is, the splits shown conform to what I would expect f

Re: [R] Subsetting a list of lists using lapply

2015-02-20 Thread Charles C. Berry
On Fri, 20 Feb 2015, Aron Lindberg wrote: Hmm…Chuck’s solution may actually be problematic because there are several entries which at the deepest level are called “sha”, but that should not be included, such as: input[[67]]$content[[1]]$commit$tree$sha and input[[67]]$content[[1]]

Re: [R] Not finding superclass in library

2015-02-23 Thread Charles C. Berry
On Mon, 23 Feb 2015, Ramiro Barrantes wrote: Thank you for pointing this out. I had no idea about the distinction but there are some good references on the matter (http://www.r-bloggers.com/packages-v-libraries-in-r/). I am pasting the corrected version below, any suggestions appreciated:

Re: [R] Requesting function for A/B testing

2015-03-06 Thread Charles C. Berry
On Sat, 7 Mar 2015, Rolf Turner wrote: On 06/03/15 22:34, Namratha K wrote: Dear Sir/Madam, I am a student pursuing MCA .As i am doing an project using R language .I want to implement A/B testing using R language.I am searching in google from past few days and not able to implement .So i requ

Re: [R] Multiple Integrals

2015-08-29 Thread Charles C. Berry
/www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry Dept of Family Medicine & Public Health cberry at ucsd edu UC San Diego / La Jolla, CA 92093-0901 http://famprevmed.ucsd.edu/facu

Re: [R] Multiple Integrals

2015-08-29 Thread Charles C. Berry
On Sat, 29 Aug 2015, Shant Ch wrote: Hello Dr. Berry, I know the theoretical side but note we are not talking about expectation of sums rather expectation of ABSOLUTE value of the function (X1/3+X2/3+X3/3-X4), i.e. E|X1/3+X2/3+X3/3-X4| , I don't think this can be handled for log normal distr

Re: [R] Multiple if function

2015-09-15 Thread Charles C. Berry
On Tue, 15 Sep 2015, Bert Gunter wrote: Thanks to both Davids. I realize that these things are often a matter of aesthetics -- and hence have little rational justification -- but I agree with The Other David: eval(parse) seems to me to violate R's soul( it makes R a macro language instead of a

Re: [R] Multiple if function

2015-09-17 Thread Charles C. Berry
On Thu, 17 Sep 2015, Berend Hasselman wrote: On 17 Sep 2015, at 01:42, Dénes Tóth wrote: On 09/16/2015 04:41 PM, Bert Gunter wrote: Yes! Chuck's use of mapply is exactly the split/combine strategy I was looking for. In retrospect, exactly how one should think about it. Many thanks to all

Re: [R] Compare two normal to one normal

2015-09-22 Thread Charles C. Berry
On Tue, 22 Sep 2015, John Sorkin wrote: In any event, I still don't know how to fit a single normal distribution and get a measure of fit e.g. log likelihood. Gotta love R: y <- rnorm(10) logLik(glm(y~1)) 'log Lik.' -17.36071 (df=2) HTH, Chuck

Re: [R] Compare two normal to one normal

2015-09-23 Thread Charles C. Berry
On Tue, 22 Sep 2015, John Sorkin wrote: Charles, I am not sure the answer to me question, given a dataset, how can one compare the fit of a model of the fits the data to a mixture of two normal distributions to the fit of a model that uses a single normal distribution, can be based on the g

Re: [R] Linear regression with a rounded response variable

2015-10-21 Thread Charles C. Berry
On Wed, 21 Oct 2015, Ravi Varadhan wrote: Hi, I am dealing with a regression problem where the response variable, time (second) to walk 15 ft, is rounded to the nearest integer. I do not care for the regression coefficients per se, but my main interest is in getting the prediction equation fo

Re: [R] Add sequence numbers to lines with the same ID: How can this be accomplished?

2015-10-24 Thread Charles C. Berry
t of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide comm

Re: [R] Order of formula terms in model.matrix

2016-01-17 Thread Charles C. Berry
On Sun, 17 Jan 2016, Lars Bishop wrote: I’d appreciate your help on understanding the following. It is not very clear to me from the model.matrix documentation, why simply changing the order of terms in the formula may change the number of resulting columns. Please note I’m purposely not in

Re: [R] Looping through data tables (or data frames) by removing previous individuals

2016-10-03 Thread Charles C. Berry
On Mon, 3 Oct 2016, Frank S. wrote: Dear R users, [deleted] I want to get a list of "k" data tables (or data frames) so that each contains those individuals who for the first time are at least 65, looping on each of the dates of vector "v". Let's consider the following example with 5 ind

[R] Escaping quotes WAS: Storing long string with white space in variable

2016-10-19 Thread Charles C. Berry
On Wed, 19 Oct 2016, g.maub...@weinwolf.de wrote: Hi All, I would like to store a long string with white space in a variable: -- cut -- # Create README.md readme <- "--- title: "Your project title here" author: "Author(s) name(s) here" date: "Current date here" output: html_document --- [s

Re: [R] function ave() with seq_along returning char sequence instead of numeric

2016-11-01 Thread Charles C. Berry
On Mon, 31 Oct 2016, Jeff Newmiller wrote: The help page describes the first argument x as a numeric... it is not designed to accept character, Actually it is so designed, but not advertised as such. See below. so the fact that you get anything even close to right is just a bonus. As the do

Re: [R] Dealing with -Inf in a maximisation problem.

2016-11-06 Thread Charles C. Berry
On Mon, 7 Nov 2016, Rolf Turner wrote: On 07/11/16 13:07, William Dunlap wrote: Have you tried reparameterizing, using logb (=log(b)) instead of b? Uh, no. I don't think that that makes any sense in my context. The "b" values are probabilities and must satisfy a "sum-to-1" constraint. To a

Re: [R] Alternative to apply in base R

2016-11-08 Thread Charles C. Berry
On Tue, 8 Nov 2016, Doran, Harold wrote: Without reaching out to another package in R, I wonder what the best way is to speed enhance the following toy example? Over the years I have become very comfortable with the family of apply functions and generally not good at finding an improvement fo

Re: [R] Frequency of a character in a string

2016-11-14 Thread Charles C. Berry
On Mon, 14 Nov 2016, Bert Gunter wrote: Yes, but it need some help, since nchar gives the length of the *entire* string; e.g. ## to count "a" 's : x <-(c("abbababba","bbabbabbaaaba")) nchar(gsub("[^a]","",x)) [1] 4 6 This is one of about 8 zillion ways to do this in base R if you don't wan

Re: [R] Frequency of a character in a string

2016-11-14 Thread Charles C. Berry
On Mon, 14 Nov 2016, Marc Schwartz wrote: On Nov 14, 2016, at 11:26 AM, Charles C. Berry wrote: On Mon, 14 Nov 2016, Bert Gunter wrote: [stuff deleted] Hi, Both gsub() and strsplit() are using regex based pattern matching internally. That being said, they are ultimately calling

Re: [R] MC_CORES and mc.cores for parallel package

2016-12-07 Thread Charles C. Berry
On Wed, 7 Dec 2016, Marc Girondot via R-help wrote: Hi, From the documentation of ?options Options set in package parallel These will be set when package parallel (or its namespace) is loaded if not already set. mc.cores: a integer giving the maximum allowed number of additional R processes

Re: [R] Make sure a data frame has been "fun through" a function

2017-02-20 Thread Charles C. Berry
On Mon, 20 Feb 2017, stephen sefick wrote: Hello, I would like to add something to a data frame that is 1) invisible to the user, 2) has no side effects, and 3) I can test for in a following function. Is this possible? I am exploring classes and attributes and I have thought about using a list

Re: [R] Make sure a data frame has been "fun through" a function

2017-02-21 Thread Charles C. Berry
On Tue, 21 Feb 2017, stephen sefick wrote: Sorry for not being clear. I have never used S3 methods before. Below is some R code that sketches out my idea. Is this a sensible solution? Sure. See comments (untested) inline. Chuck test_data <- data.frame(a=1:10, b=1:10, c=1:10) functionA <-

Re: [R] Sampling distribution (PDF & CDF) of correlation

2008-07-17 Thread Charles C. Berry
ng-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San D

Re: [R] combining lists of pairs

2008-07-17 Thread Charles C. Berry
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of

Re: [R] avoid loop with three-dimensional array

2008-07-21 Thread Charles C. Berry
elp@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] convert for loop into apply()

2008-08-03 Thread Charles C. Berry
e. Any idea? Thanks -- Regards, Anh Tran [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Index alternative to nasty FOR loop?

2008-08-06 Thread Charles C. Berry
HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles

Re: [R] Union of columns of two matrices

2008-08-07 Thread Charles C. Berry
ommented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Joll

Re: [R] operating on arrays of unknown dimensionality

2008-08-08 Thread Charles C. Berry
y, sell, subscribe, redeem or perform any type of transaction of a financial product. __________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provid

Re: [R] RPro

2008-08-09 Thread Charles C. Berry
e commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://famprevmed.ucsd.edu/faculty/cbe

Re: [R] Between the values

2008-08-12 Thread Charles C. Berry
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. This e-mail may contain confidential and/or privileged i...{{dropped:10}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] produce variable on the fly

2008-08-12 Thread Charles C. Berry
_ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles

Re: [R] ignoring zeros or converting to NA

2008-08-12 Thread Charles C. Berry
inimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla

Re: [R] ignoring zeros or converting to NA

2008-08-12 Thread Charles C. Berry
k to `a` as would "is.na(a) <- 1", etc.) HTH, Chuck thanks Stephen Sefick On Tue, Aug 12, 2008 at 6:32 PM, Charles C. Berry <[EMAIL PROTECTED]> wrote: On Tue, 12 Aug 2008, Mike Prager wrote: rcoder <[EMAIL PROTECTED]> wrote: I have a matrix that has a combina

Re: [R] Determining cause of error?

2008-08-13 Thread Charles C. Berry
ented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jo

Re: [R] Detecting duplicate values

2008-08-14 Thread Charles C. Berry
___ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry

Re: [R] stopifnot message mutation

2008-08-15 Thread Charles C. Berry
man/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medic

Re: [R] Combination with repetition

2008-08-15 Thread Charles C. Berry
e http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED]

Re: [R] matrix row product and cumulative product

2008-08-17 Thread Charles C. Berry
mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Fa

Re: [R] A doubt about "lm" and the meaning of its summary

2008-08-19 Thread Charles C. Berry
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.ht

Re: [R] Reading in a value of .Random.seed in .Rprofile

2008-08-20 Thread Charles C. Berry
ter_ startup to get behavior like you describe. Perhaps, you have something later in your .Rprofile that specifically load()'s your old .RData? Chuck p.s. sessionInfo() R version 2.7.1 (2008-06-23) x86_64-unknown-linux-gnu locale: C attached base packages: [1] stats graphics gr

Re: [R] Reading in a value of .Random.seed in .Rprofile

2008-08-20 Thread Charles C. Berry
On Thu, 21 Aug 2008, Rolf Turner wrote: On 21/08/2008, at 10:21 AM, Charles C. Berry wrote: On Thu, 21 Aug 2008, Rolf Turner wrote: > > > For reasons that are best known to myself [ ;-) ] I have a value of > .Random.seed > saved (via dput()) in a file ``.Random.seed.sav

Re: [R] vector operation using regexpr?

2008-08-20 Thread Charles C. Berry
R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] [dist]how to analise a large matrix?

2008-08-21 Thread Charles C. Berry
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED]

Re: [R] Large Data Set Help

2008-08-25 Thread Charles C. Berry
R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry

Re: [R] "unexpected symbol" error?

2008-08-25 Thread Charles C. Berry
t; HTH, Chuck This email has been processed by SmoothZap - www.smoothwall.net __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-projec

Re: [R] sequence with start and stop positions

2008-08-26 Thread Charles C. Berry
@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] A manipulation problem for a large data set in R

2008-08-27 Thread Charles C. Berry
tp://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San

Re: [R] sample consecutive integers efficiently

2008-08-28 Thread Charles C. Berry
in that case. HTH, Chuck > Many thanks, Chris __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minima

Re: [R] lost attrubute:names

2008-08-28 Thread Charles C. Berry
each of the above forms. "[" merely tries to do something reasonable. Why do you think k should have any attributes, and what names do you think k should have??? HTH, Chuck ? YU [[alternative HTML version deleted]] Charles C. Berry(858) 534-2098

Re: [R] more efficient double summation...

2008-08-29 Thread Charles C. Berry
ttp://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San D

Re: [R] list indexing problem reading in files from a directory

2009-08-11 Thread Charles C. Berry
ject.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] lm coefficients output confusing

2009-08-13 Thread Charles C. Berry
t from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, se

Re: [R] simple randomization question: How to perform "sample" in chunks

2009-08-20 Thread Charles C. Berry
ng list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] Problem passing a statistical model as an argument

2009-08-20 Thread Charles C. Berry
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://famprevme

Re: [R] Trying something for fun...

2009-08-22 Thread Charles C. Berry
ect.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] Trying something for fun...

2009-08-23 Thread Charles C. Berry
x ) fit <- coxph( clogit.response( winner ) ~ strata( heat ) + x ) new.preds <- ave( predict( fit ,newdata=newdat, type = 'risk'), newdat$heat, FUN=prop.table ) Ought to do it. HTH, Chuck Thanks!! -N On 8/22/09 10:57

Re: [R] Trying something for fun...

2009-08-23 Thread Charles C. Berry
On Sun, 23 Aug 2009, Charles C. Berry wrote: On Sat, 22 Aug 2009, Noah Silverman wrote: And, of course that leads me to another question... With svm {e1071} I can ask the predict function to give me probabilities with lrm {Desigh} I can ask the predict function to give me probabilities

Re: [R] Is there a fast way to do several hundred thousand ANOVA tests?

2009-08-23 Thread Charles C. Berry
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] changing equal values on matrix by same random number

2009-08-26 Thread Charles C. Berry
.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http:

Re: [R] Does split() preserve order?

2009-08-26 Thread Charles C. Berry
lit(). __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Be

Re: [R] correlation between two 2D point patterns?

2009-08-30 Thread Charles C. Berry
p PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E

Re: [R] matrix manipulation problem

2009-09-01 Thread Charles C. Berry
org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego h

Re: [R] Avoiding loops

2009-09-02 Thread Charles C. Berry
tat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Pr

Re: [R] finding the minimum value

2009-09-07 Thread Charles C. Berry
7;t store the values in a list to start with. HTH, Chuck I think the question is really trivial, but I tried to work on it and couldn't reach anythg. Thanks. Maram [[alternative HTML version deleted]] Charles C. Berry(858) 534-2098

Re: [R] makefile for sweave

2009-09-08 Thread Charles C. Berry
< makeindex $< cheers! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

Re: [R] any way to make it work faster (deleting rows that contain certain values)

2009-09-22 Thread Charles C. Berry
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu

Re: [R] Searching for option explanations

2010-03-11 Thread Charles C. Berry
_ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] range and intersection

2010-03-13 Thread Charles C. Berry
.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] range and intersection

2010-03-13 Thread Charles C. Berry
Typo corrected below. On Sat, 13 Mar 2010, Charles C. Berry wrote: On Sat, 13 Mar 2010, Adrian Johnson wrote: Hi: I have a two large files (over 300K lines). file 1: NameX UK 199 UK 230 UK 139 .. UAE194 UAE 94 File 2: Name XY UK

Re: [R] A complex case of distribution fitting

2010-03-15 Thread Charles C. Berry
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family

Re: [R] Why eval(parse(text="var(vec)")) return a matrix but NOT a number?

2010-03-17 Thread Charles C. Berry
ec,na.rm=T)" X1 X2 X1 NA NA X2 NA NA [1] "sum(vec,na.rm=T)" [1] 6 [1] "var(vec,na.rm=T)" X1 X2 X1 NA NA X2 NA NA __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/p

Re: [R] Pedigree / Identifying Immediate Family of Index Animal

2010-03-18 Thread Charles C. Berry
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098

Re: [R] matrix problem

2009-07-04 Thread Charles C. Berry
commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/

Re: [R] Solving quadratic equations with covariance term

2009-07-07 Thread Charles C. Berry
, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://famprevmed.ucsd.edu/faculty/cber

Re: [R] How to perform a Likelihood-ratio test?

2009-07-13 Thread Charles C. Berry
ting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://famprevm

Re: [R] survSplit with data.frame containing a Surv object

2009-07-13 Thread Charles C. Berry
ces_2.9.1 methods_2.9.1 [5] splines_2.9.1 stats_2.9.1 utils_2.9.1 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and prov

Re: [R] survSplit with data.frame containing a Surv object

2009-07-13 Thread Charles C. Berry
On Mon, 13 Jul 2009, Heinz Tuechler wrote: At 20:18 13.07.2009, Charles C. Berry wrote: On Mon, 13 Jul 2009, Heinz Tuechler wrote: > Dear All, > > since years I am struggling with Surv objects in data.frames. The > following seems to have to do with it. > See below the modifi

Re: [R] survSplit with data.frame containing a Surv object

2009-07-13 Thread Charles C. Berry
On Mon, 13 Jul 2009, Charles C. Berry wrote: On Mon, 13 Jul 2009, Heinz Tuechler wrote: At 20:18 13.07.2009, Charles C. Berry wrote: > On Mon, 13 Jul 2009, Heinz Tuechler wrote: > > > Dear All, > > > > since years I am struggling with Surv objects in data.fra

Re: [R] hi, how can we avoid maskiing error in R

2009-07-14 Thread Charles C. Berry
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucs

Re: [R] Simulation functions for underdispered Poisson and binomial distributions

2009-07-15 Thread Charles C. Berry
demic/nakagawa.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry

Re: [R] Passing additional arguments through '...'

2009-07-15 Thread Charles C. Berry
org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://fam

Re: [R] spreadsheet-style autoupdating

2009-07-15 Thread Charles C. Berry
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. Berry(8

Re: [R] Help with Conditional Logit

2009-07-17 Thread Charles C. Berry
0:54:18 -- XFMail -- [[alternative HTML version deleted]] ______ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-proje

Re: [R] Passing additional arguments through '...'

2009-07-17 Thread Charles C. Berry
complete or doesn't do quite what you want it to do. HTH, Chuck Charles C. Berry wrote: I think you'll need to dig into sys.call() and match.call() and put together your own matching scheme to force a function to first match by position and then match all else by name. If ma

Re: [R] Passing additional arguments through '...'

2009-07-17 Thread Charles C. Berry
around partial matching issues when named args are used BEFORE ... in the formals of a function and calls are constructed that rely on position taking precedence over partial matches in ... . HTH, Chuck Charles C. Berry wrote: I did not follow that. But I might guess that you do not gro

Re: [R] How to do adjust for sex, age, genotype for a data

2009-07-17 Thread Charles C. Berry
. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:cbe...@tajo.ucsd.edu UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901

Re: [R] Can I use "mcnemar.test" for 3*3 tables (or is there a bug in the command?)

2009-07-19 Thread Charles C. Berry
nformation: Tal Galili Phone number: 972-50-3373767 FaceBook: Tal Galili My Blogs: http://www.r-statistics.com/ http://www.talgalili.com http://www.biostatistics.co.il [[alternative HTML version deleted]] Charles C. Berry(858) 534-2098

  1   2   3   4   5   6   7   >