Re: [R] Running a PERL script from R

2007-09-07 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:[EMAIL PROTECTED] UC San Diego http

Re: [R] How to obtain parameters of a mixture model of two lognormal distributions

2007-09-07 Thread Charles C. Berry
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 Diego http://famprevmed.ucsd.edu/faculty/cberry

Re: [R] element wise opertation between a vector and a list

2007-09-05 Thread Charles C. Berry
, 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, San Diego 92093-0901

Re: [R] NAs in indices

2007-09-02 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:[EMAIL PROTECTED

Re: [R] OT: distribution of a pathological random variate

2007-08-29 Thread Charles C. Berry
, 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 Jolla, San

Re: [R] logic operation on an array

2007-08-28 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:[EMAIL PROTECTED

Re: [R] data manipulation help

2007-08-28 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] UC San

Re: [R] use apply function with which

2007-08-27 Thread Charles C. Berry
__ R-help@stat.math.ethz.ch 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] read big text file into R

2007-08-23 Thread Charles C. Berry
, 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, San Diego 92093-0901

Re: [R] Exact Confidence Intervals for the Ration of Two Binomial

2007-08-23 Thread Charles C. Berry
@stat.math.ethz.ch 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] Expedite scalar f(x) evaluation over vectors

2007-08-23 Thread Charles C. Berry
]] __ R-help@stat.math.ethz.ch 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] Output from while and for loop

2007-08-22 Thread Charles C. Berry
-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 Diego http://famprevmed.ucsd.edu

Re: [R] tackle memory insufficiency for large dataset using save() load()??

2007-08-22 Thread Charles C. Berry
() should tell you there are two objects - 'd' and 'newdata' So just continue using 'd', e.g. summary( d ) HTH, Chuck [snip] Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED

Re: [R] stupid question??

2007-08-20 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] UC San

Re: [R] doubt about string comparison

2007-08-18 Thread Charles C. Berry
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] names not inherited in functions

2007-08-17 Thread Charles C. Berry
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/cberry/ La

Re: [R] Linear models over large datasets

2007-08-17 Thread Charles C. Berry
. 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, San Diego 92093-0901

Re: [R] ANOVA: Factorial designs with a separate control

2007-08-15 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:[EMAIL PROTECTED

Re: [R] Q: how to extract coefisients from one glm and implement them in to an other glm?

2007-08-13 Thread Charles C. Berry
]] __ R-help@stat.math.ethz.ch 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] Memory Experimentation: Rule of Thumb = 10-15 Times the Memory

2007-08-09 Thread Charles C. Berry
]] __ R-help@stat.math.ethz.ch 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] Memory Experimentation: Rule of Thumb = 10-15 Times the Memory

2007-08-09 Thread Charles C. Berry
object.size(as.factor(big2))/1e6 [1] 4.001184 big3 - paste(big2,big2,sep='') object.size(big3)/1e6 [1] 36.2 object.size(as.factor(big3))/1e6 [1] 4.001184 On 8/9/07, Charles C. Berry [EMAIL PROTECTED] wrote: On Thu, 9 Aug 2007, Michael Cassin wrote: I really appreciate the advice

Re: [R] Naming Lists

2007-08-07 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] backslash c

2007-08-07 Thread Charles C. Berry
__ R-help@stat.math.ethz.ch 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] Mixture of Normals with Large Data

2007-08-04 Thread Charles C. Berry
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 Diego http://famprevmed.ucsd.edu/faculty

Re: [R] generating symmetric matrices

2007-07-30 Thread Charles C. Berry
@stat.math.ethz.ch 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] Looping through all possible combinations of cases

2007-07-30 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:[EMAIL PROTECTED] UC San Diego http

Re: [R] Matrix Multiplication, Floating-Point, etc.

2007-07-30 Thread Charles C. Berry
, 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, San Diego 92093-0901

Re: [R] Dataframe of factors transform speed?

2007-07-20 Thread Charles C. Berry
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, San Diego 92093-0901

Re: [R] Question about acception rejection sampling - NOT R question

2007-07-13 Thread Charles C. Berry
-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 Diego http://famprevmed.ucsd.edu

Re: [R] Power analysis for glm-function

2007-07-13 Thread Charles C. Berry
@stat.math.ethz.ch 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] Efficiently calculate sd on an array?

2007-06-17 Thread Charles C. Berry
, 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, San Diego 92093-0901

Re: [R] R programming question

2007-06-14 Thread Charles C. Berry
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] UC

Re: [R] Normal and Poisson tail area expectations in R

2007-06-14 Thread Charles C. Berry
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of kavindra malik Sent: Wednesday, June 13, 2007 5:45 PM To: Charles C. Berry Cc: r-help@stat.math.ethz.ch Subject

Re: [R] Retain names in conversion of matrix to vector

2007-06-14 Thread Charles C. Berry
-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 Diego http

Re: [R] passing (or obtaining) index or element name of list to FUN in lapply()

2007-06-13 Thread Charles C. Berry
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, San Diego 92093-0901

Re: [R] Normal and Poisson tail area expectations in R

2007-06-13 Thread Charles C. Berry
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:[EMAIL PROTECTED

Re: [R] How to load a big txt file

2007-06-06 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:[EMAIL PROTECTED

Re: [R] How to load a big txt file

2007-06-06 Thread Charles C. Berry
On Wed, 6 Jun 2007, Charles C. Berry wrote: Alex, See R Data Import/Export Version 2.5.0 (2007-04-23) search for 'large' or 'scan'. Usually, taking care with the arguments nlines, what, quote, comment.char should be enough to get scan() to cooperate. You will need

Re: [R] Question about parse and expression

2007-06-06 Thread Charles C. Berry
__ R-help@stat.math.ethz.ch 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] GUI for R running under Linux

2007-06-04 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:[EMAIL PROTECTED] UC

Re: [R] Harrell's C

2007-06-02 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] Updating R version

2007-06-02 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 Family/Preventive

Re: [R] Conditional logistic regression for events/trials format

2007-06-01 Thread Charles C. Berry
: Charles C. Berry [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 1:12 PM To: Strickland, Matthew (CDC/CCHP/NCBDDD) (CTR) Cc: r-help@stat.math.ethz.ch; [EMAIL PROTECTED] Subject: Re: [R] Conditional logistic regression for events/trials format On Thu, 31 May 2007, Strickland, Matthew (CDC

Re: [R] Conditional logistic regression for events/trials format

2007-05-31 Thread Charles C. Berry
-help@stat.math.ethz.ch 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] R keeps crashing when executing 'rlogspline'

2007-05-31 Thread Charles C. Berry
-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 Diego http://biostat.ucsd.edu

Re: [R] Generating Data using Formulas

2007-05-30 Thread Charles C. Berry
not sure how to do that. Please help and thank you for your time, christian falde [snip] Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu

Re: [R] Partially reading a file (particularly)

2007-05-29 Thread Charles C. Berry
-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 Diego http://biostat.ucsd.edu/~cberry

Re: [R] In which package is the errbar command located?

2007-05-25 Thread Charles C. Berry
@stat.math.ethz.ch 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] reading a big file

2007-05-24 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:[EMAIL PROTECTED] UC

Re: [R] Selecting complementary colours

2007-05-21 Thread Charles C. Berry
@stat.math.ethz.ch 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] Why a multi column, tab delimited file has only one column after reading in with read.table specification sep=\t

2007-05-20 Thread Charles C. Berry
-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 Diego http://biostat.ucsd.edu/~cberry

Re: [R] Randomising matrices

2007-04-28 Thread Charles C. Berry
## -- ## Arguments: x - number to sample, marg - a vector of integers ## -- ## Author: Charles C. Berry, Date: 28 Apr 2007, 08:17 ## GPL 2.0 or better if (!(x=sum(marg) all(marg=0))) browser() wm - which(marg!=0) if (length(wm

[R] Retraction WAS: Re: Randomising matrices

2007-04-28 Thread Charles C. Berry
Sorry folks, With some further checking, it turns out that this sampling scheme does not conform to the relevant null. :-( Chuck On Sat, 28 Apr 2007, Charles C. Berry wrote: Nick Cutler s0455078 at sms.ed.ac.uk writes: I would like to be able to randomise presence-absence (i.e. binary

Re: [R] intersect more than two sets

2007-04-24 Thread Charles C. Berry
-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 Diego http

Re: [R] Dominance in qtl model

2007-04-23 Thread Charles C. Berry
__ R-help@stat.math.ethz.ch 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] names( d$columnname )

2007-04-22 Thread Charles C. Berry
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] UC San Diego

Re: [R] how to convert the lower triangle of a matrix to a symmetric matrix

2007-04-19 Thread Charles C. Berry
@stat.math.ethz.ch 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 or grid conversion of spatial data

2007-04-18 Thread Charles C. Berry
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:[EMAIL PROTECTED] UC San

Re: [R] Extracting approximate Wald test (Chisq) from coxph(..frailty)

2007-04-17 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:[EMAIL PROTECTED

Re: [R] Question of the impact of the pilot experiment on the overal statistic interpretation of the subsequent work

2007-04-17 Thread Charles C. Berry
@stat.math.ethz.ch 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] Greek symbols in xtable rows

2007-04-16 Thread Charles C. Berry
. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0901

Re: [R] Looping through series of names

2007-04-11 Thread Charles C. Berry
for the functions mentioned there do not answer your question, it would probably help elicit a useful response to spell out how your problem differs from those addressed therein. [rest deleted] Charles C. Berry(858) 534-2098 Dept

Re: [R] Finding a single unique item in duplicated vectors

2007-04-04 Thread Charles C. Berry
__ R-help@stat.math.ethz.ch 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] Model comparison

2007-03-30 Thread Charles C. Berry
is on 'non-nested' models. Here is a start: Bradley Efron Comparing non-nested linear models J. of the Amer. Stat'l. Assn. 79:791-803,1984 Google is your friend. Try 'non-nested test' and 'non-nested model' and you will get many hits. [snip] Charles C. Berry(858) 534-2098

Re: [R] Vector indexing question

2007-03-29 Thread Charles C. Berry
) __ R-help@stat.math.ethz.ch 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] personalize regression printing?

2007-03-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:[EMAIL PROTECTED] UC

Re: [R] Sorting rows of a binary matrix

2007-02-22 Thread Charles C. Berry
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 Diego http://biostat.ucsd.edu/~cberry/ La Jolla

Re: [R] Crosstabbing multiple response data

2007-02-22 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:[EMAIL PROTECTED

Re: [R] memory management uestion [Broadcast]

2007-02-20 Thread Charles C. Berry
f.calboli [.a.t] imperial.ac.uk f.calboli [.a.t] gmail.com Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry/ La Jolla

Re: [R] memory management uestion

2007-02-19 Thread Charles C. Berry
, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0901

Re: [R] Migrating .RData from Windows to Linux?

2007-02-16 Thread Charles C. Berry
-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 Diego http

Re: [R] processing a large matrix

2007-02-12 Thread Charles C. Berry
, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0901

Re: [R] abbreviate dataframe for Sweave output

2007-02-06 Thread Charles C. Berry
, reproducible code. Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry/ La Jolla, San Diego 92093-0901

Re: [R] Another loop - deloop question

2007-02-02 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 Dept

Re: [R] [fixed] vectorized nested loop: apply a function that takes two rows

2007-01-23 Thread Charles C. Berry
__ R-help@stat.math.ethz.ch 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] [fixed] vectorized nested loop: apply a function that takes two rows

2007-01-23 Thread Charles C. Berry
On Tue, 23 Jan 2007, Charles C. Berry wrote: I am rusty on 'Matrix', but I see there are crossprod methods for those classes. res - crossprod( x , x ) gives your result up to scale factors of sqrt(res[i,i]*res[j,j]), so something like diagnl - Diagonal( ncol(x), sqrt( diag

Re: [R] Newbie question: Statistical functions (e.g., mean, sd) in a transform statement?

2007-01-19 Thread Charles C. Berry
-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 Diego http

Re: [R] sleep data

2007-01-18 Thread Charles C. Berry
of the data is at: https://biostat.ucsd.edu/~cberry/t-test/sleep.dat The version published in Student's Biometrika article has a typographical error, but it is evident that Student's computations were unaffected. Chuck Berry On Wed, 17 Jan 2007, Charles C. Berry wrote: Yes, you refer

Re: [R] sleep data

2007-01-17 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:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu

Re: [R] Correlation to a Single Gene

2007-01-17 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] UC San Diego http

Re: [R] Matching on multiple columns

2007-01-11 Thread Charles C. Berry
__ R-help@stat.math.ethz.ch 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] maximum likelihood estimation of 5 parameters

2007-01-05 Thread Charles C. Berry
. __ R-help@stat.math.ethz.ch 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] Does SQL group by have a heavy duty equivalent in R

2006-12-31 Thread Charles C. Berry
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 Diego http://biostat.ucsd.edu/~cberry/ La

Re: [R] Does SQL group by have a heavy duty equivalent in R

2006-12-31 Thread Charles C. Berry
On Sun, 31 Dec 2006, Charles C. Berry wrote: On Sun, 31 Dec 2006, Farrel Buchinsky wrote: I have hundreds of humans who have undergone SNP genotyping at hundreds of loci. Some have even undergone the procedure twice or thrice (kind of an internal control). So obviously I need to find

Re: [R] coded to categorical variables in a large dataset

2006-12-29 Thread Charles C. Berry
event1 - as.numeric( test2 == 1 ) is concise and for (i in 1:5) assign(paste(event,i,sep=), as.numeric( test2==i )) is about as fast as you can get. HTH, Chuck Charles C. Berry(858) 534-2098 Dept of Family

Re: [R] importing bitmap images to R

2006-12-28 Thread Charles C. Berry
-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 Diego http

Re: [R] Problem to generate training data set and test data set

2006-12-26 Thread Charles C. Berry
__ R-help@stat.math.ethz.ch 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] Rating competitors

2006-12-26 Thread Charles C. Berry
@stat.math.ethz.ch 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] extend summary.lm for hccm?

2006-12-26 Thread Charles C. Berry
@stat.math.ethz.ch 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] simple NLS query

2006-12-23 Thread Charles C. Berry
-help@stat.math.ethz.ch 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] multiline system call

2006-12-22 Thread Charles C. Berry
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 Diego http://biostat.ucsd.edu/~cberry/ La Jolla

Re: [R] multiline system call

2006-12-22 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 Family/Preventive

Re: [R] : newbie estimating survival curve w/ survfit for coxph

2006-12-21 Thread Charles C. Berry
am no sure how to sort it out. any help is appreciated, best regards, Spencer [ irrelevant prior msg deleted ] Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC

Re: [R] two connected graphs

2006-12-14 Thread Charles C. Berry
(to set up your two plots using the same scale) Calls to grid.move.to, seekViewport, and grid.line.to can be used to connect points in different plots (viewports) [...] Charles C. Berry(858) 534-2098 Dept of Family/Preventive

Re: [R] persistant: Matlab-R

2006-12-14 Thread Charles C. Berry
-help@stat.math.ethz.ch 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] Calculating AICc using conditional logistic regression

2006-12-12 Thread Charles C. Berry
,...) { y - -1 * (object$loglik[1] - object$loglik[2]) class(y) - logLik attr(y,'df')- sum(!is.na(object$coef)) y } Try it like this: fit - clogit(case ~ spontaneous + induced + strata(stratum), data = infert) logLik(fit) 'log Lik.' 26.57712 (df=2) [...] Charles C

Re: [R] implementation of t.test

2006-12-11 Thread Charles C. Berry
to study t.test.default see ?methods ?::: HTH [...] Charles C. Berry(858) 534-2098 Dept of Family/Preventive Medicine E mailto:[EMAIL PROTECTED] UC San Diego http://biostat.ucsd.edu/~cberry

Re: [R] R in linux

2006-12-09 Thread Charles C. Berry
@stat.math.ethz.ch 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] Show number at risk on Kaplan Meier curve

2006-12-09 Thread Charles C. Berry
/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 Medicine E mailto

Re: [R] any way to make the code more efficient ?

2006-12-08 Thread Charles C. Berry
}} __ R-help@stat.math.ethz.ch 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

  1   2   >