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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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 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] 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] 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] 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] 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] 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] Help with expression

2011-01-24 Thread Charles C. Berry
Consulting, Department of Statistics __ 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] function of probability for normal distribution

2011-01-19 Thread Charles C. Berry
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jo

Re: [R] Parameters/data that live globally

2011-01-18 Thread Charles C. Berry
osting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu/faculty

Re: [R] list concatenation

2011-01-11 Thread Charles C. Berry
quot; "b" "c" "A" "B" "C" $I$B [1] "d" "e" "f" "D" "E" "F" $II $II$A [1] "g" "h" "i" "G" "H" "I" $II$B [1] "j" "k&

Re: [R] Memory Needed for Regression

2011-01-10 Thread Charles C. Berry
nd provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901 __

Re: [R] Normal Distribution Quantiles

2011-01-08 Thread Charles C. Berry
o read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed

Re: [R] Question on list objects

2011-01-08 Thread Charles C. Berry
k Would be grateful for any help. ? Thanks, [[alternative HTML version deleted]] Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu/faculty/cber

Re: [R] pattern recognition with paths

2011-01-05 Thread Charles C. Berry
[[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, reproducible code. Charles C. Berry

Re: [R] Repeated Indexing / Sequence Operation

2010-12-31 Thread Charles C. Berry
ASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego h

Re: [R] forcing evaluation of a char string argument

2010-12-23 Thread Charles C. Berry
-string-argument-tp3161365p3161542.html To unsubscribe from forcing evaluation of a char string argument, click here. -- View this message in context: http://r.789695.n4.nabble.com/forcing-evaluation-of-a-char-string-argument-tp3161365p3161666.html Sent from the R help mailing list archive at Nabbl

Re: [R] help with function

2010-12-17 Thread Charles C. Berry
hed base packages: [1] stats     graphics  grDevices utils     datasets  methods   base      loaded via a namespace (and not attached): [1] tools_2.12.0 __________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Confidence Intervals for Odds Ratios in multivariate logistic regression

2010-12-08 Thread Charles C. Berry
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. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.edu

Re: [R] grep for strings

2010-12-04 Thread Charles C. Berry
oject.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu/faculty

Re: [R] How to pass selection criteria in a function

2010-12-01 Thread Charles C. Berry
Extension:?5235 cmccar...@bmcc.cuny.edu [[alternative HTML version deleted]] Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu/faculty/

Re: [R] more flexible "ave"

2010-11-30 Thread Charles C. Berry
ot;value1") - but how... I've also played around with "apply" but without any success. Thanks for any help! Patrick __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] the first. from SAS in R

2010-11-23 Thread Charles C. Berry
n/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. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.edu

Re: [R] the first. from SAS in R

2010-11-23 Thread Charles C. Berry
On Tue, 23 Nov 2010, David Winsemius wrote: On Nov 23, 2010, at 11:04 AM, Charles C. Berry wrote: On Tue, 23 Nov 2010, Dennis Murphy wrote: > Interesting. Check this out: > > u <- sample(c(TRUE, FALSE), 10, replace = TRUE) > > u > [1] FALSE FALSE TRUE FALSE FALSE T

Re: [R] Slow update(insert) on Data.frame

2010-11-23 Thread Charles C. Berry
do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed.ucsd.edu

Re: [R] the first. from SAS in R

2010-11-23 Thread Charles C. Berry
ttp://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://fam

Re: [R] the first. from SAS in R

2010-11-23 Thread Charles C. Berry
t 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, self-contained, reproducible code. Char

Re: [R] efficient conversion of matrix column rows to list elements

2010-11-17 Thread Charles C. Berry
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 C. Berry

Re: [R] as.matrix behaves weird

2010-11-14 Thread Charles C. Berry
e http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Charles C. BerryDept of Family/Preventive Medicine cbe...@tajo.ucsd.eduUC San Diego http://famprevmed

Re: [R] count occurrence and distance of characters in string

2010-11-04 Thread Charles C. Berry
a d j k l o 1 3 1 4 2 4 diff(res[['o']])-1 [1] 3 2 4 # or sapply(sapply(res,diff),"-",1) $a numeric(0) $d [1] 0 0 $j numeric(0) $k [1] 2 3 0 $l [1] 0 $o [1] 3 2 4 Chuck On 11/05/2010 12:28 AM, Charles C. Berry wrote: On Thu, 4 Nov 2010, Immanuel wrote: Hell

Re: [R] count occurrence and distance of characters in string

2010-11-04 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. BerryDept of Family

Re: [R] Merging nested lists

2010-10-28 Thread Charles C. Berry
On Wed, 27 Oct 2010, Charles C. Berry wrote: On Wed, 27 Oct 2010, Alex P. wrote: Hello All, I have multiple "list of lists" in the form of Mylist1[[N]][[K]]$Name_i, with N=1..6, K=1..3, and i=1..7. Each Name_i is a matrix. I have 30 of these objects Mylist1, Mylist2, ...

Re: [R] Merging nested lists

2010-10-27 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.ucsd

Re: [R] Question on passing the subset argument to an lm wrapper

2010-10-25 Thread Charles C. Berry
to do with model.frame, but not sure how) would also be greatly appreciated! Thanks! --Erik __ 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

Re: [R] Putting the same array into a matrix

2010-10-14 Thread Charles C. Berry
d, 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/fa

Re: [R] Poisson Regression

2010-10-13 Thread Charles C. Berry
t.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] [OT] (slightly) - OpenOffice Calc and text files

2010-10-13 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:cbe...@tajo.ucsd.edu UC San

Re: [R] How to convert a list to a ... argument for a function

2010-10-05 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:cbe...@tajo.ucsd.edu UC San Dieg

Re: [R] How to apply vector value function to a multidimensional array indexed by the remaining dimensions?

2010-10-01 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] Question about Reduce

2010-10-01 Thread Charles C. Berry
e.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://famprevmed.ucs

Re: [R] Sweave and LaTeX beamer class

2010-09-30 Thread Charles C. Berry
g 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] sample from very large distribution

2010-09-29 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 Fam

Re: [R] drawing samples based on a matching variable

2010-09-29 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] OT: Is randomization for targeted cancer therapies ethical?

2010-09-20 Thread Charles C. Berry
-- Bert Gunter Genentech Nonclinical Biostatistics __ 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. Cha

Re: [R] break the long R code lines automatically

2010-08-24 Thread Charles C. Berry
5 + 16 + 17 + 18 + 19 + 20 nchar(readLines("testwrap.R")) [1] 95 59 and of course you will want 'sink' or some such to save the lines. HTH, Chuck Heyi [[alternative HTML version deleted]] Charles C. Berry(858) 534-2

Re: [R] spare matrix replacing values efficiently

2010-08-22 Thread Charles C. Berry
de.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] on abort error, always show call stack?

2010-08-22 Thread Charles C. Berry
oducible 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/ La Jo

Re: [R] Making a series of similar, but modified .r files - suggested method(s)?

2010-08-21 Thread Charles C. Berry
files, given experimental replication). Thank you, Laura -- " Genius is the summed production of the many with the names of the few attached for easy recall, unfairly so to other scientists" - E. O. Wilson (The Diversity of Life) [[alternative HTML version deleted]] ______

Re: [R] U value from wilcox.test

2010-08-20 Thread Charles C. Berry
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 mailto:cbe...@tajo.uc

Re: [R] functions and multiple levels

2010-08-18 Thread Charles C. Berry
-tp2329935p2329935.html Sent 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, self-contained, r

Re: [R] Plot in cartesian plane

2010-08-17 Thread Charles C. Berry
ge: Skype/]pablocerdeira [[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, reproducible

Re: [R] merge function in R?

2010-08-13 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

Re: [R] reading fixed width format data with 2 types of lines

2010-08-12 Thread Charles C. Berry
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- -- Tim Gruene Institut fuer anorganische Chemie Tammannstr. 4 D-37077 Goettingen GPG Key ID = A46BEE1A Charles C. Berry(858) 534-2098

Re: [R] a question regarding updating formulas with coefficients

2010-08-11 Thread Charles C. Berry
On Wed, 11 Aug 2010, David Winsemius wrote: On Aug 11, 2010, at 6:45 PM, Charles C. Berry wrote: On Wed, 11 Aug 2010, David Winsemius wrote: > > On Aug 11, 2010, at 6:03 PM, Jarrett Byrnes wrote: > > > I have formulae with coefficents that I would like to update. However,

Re: [R] a question regarding updating formulas with coefficients

2010-08-11 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://famprevmed.ucsd

Re: [R] package for measurement error models

2010-08-07 Thread Charles C. Berry
lp 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 mailto:cb

Re: [R] discrete ECDF

2010-08-04 Thread Charles C. Berry
roject.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] problem with indicators for switch

2010-08-02 Thread Charles C. Berry
it is a common function HTH, Chuck I hope this is clear... Thanks Roy __ 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 c

Re: [R] Lognormal distribution - Range Factor

2010-08-01 Thread Charles C. Berry
2:33:45 -- XFMail -- __ 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-cont

Re: [R] help splitting a data frame

2010-07-29 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(85

Re: [R] Sweave and scan()

2010-07-27 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] Fwd: Questions about templates for R

2010-07-27 Thread Charles C. Berry
e.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://famprevmed.ucsd.edu/facu

Re: [R] Survival analysis MLE gives NA or enormous standard errors

2010-07-27 Thread Charles C. Berry
On Tue, 27 Jul 2010, Christopher David Desjardins wrote: Hi Charles, On Fri, 2010-07-23 at 14:40 -0700, Charles C. Berry wrote: On Fri, 23 Jul 2010, Christopher David Desjardins wrote: Sorry. I should have included some data. I've attached a subset of my data (50/192) cases in a Rdata

Re: [R] Loading Rdata files in a Package

2010-07-25 Thread Charles C. Berry
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] , Updating Table

2010-07-24 Thread Charles C. Berry
there any command that can update the table ZZ for each time so that in the above example, ZZ will be "A" "B" "C" "D" ?7??? 17?? 2??? 8 Thanks. liu [[alternative HTML version deleted]] Charles C. Berry(858

Re: [R] Survival analysis MLE gives NA or enormous standard errors

2010-07-23 Thread Charles C. Berry
L 47 14.789870 MAJOR 48 20.054760 MAJOR 49 14.787130 MAJOR 50 19.868580 MAJOR On Fri, 2010-07-23 at 11:52 -0700, Charles C. Berry wrote: On Fri, 23 Jul 2010, Christopher David Desjardins wrote: Hi, I am trying to fit the following model: sr.reg.s4.nore <- survreg(Su

Re: [R] Survival analysis MLE gives NA or enormous standard errors

2010-07-23 Thread Charles C. Berry
t.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] (no subject)

2010-07-11 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] How do I test against a simple null that two regressions coefficients are equal?

2010-07-07 Thread Charles C. Berry
~chen_1002/ __ 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. Charle

Re: [R] forcing a zero level in contr.sum

2010-07-07 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. David Winsemius, MD West Hartford, CT __ R-h

Re: [R] Weired problem when passing arguments using ...?

2010-07-07 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] plotmath vector problem; full program enclosed

2010-07-06 Thread Charles C. Berry
=mu+dividers*sigma, labels=c(b1,b2,b3,b4,b5), padj=-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 provide

Re: [R] Memory problem in multinomial logistic regression

2010-07-05 Thread Charles C. Berry
he 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...@taj

  1   2   3   4   5   6   7   >