Re: [R] Too many warnings when updating R

2007-09-10 Thread Peter Dalgaard
or may not be around to fix issues. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED

Re: [R] MLE Function

2007-09-10 Thread Peter Dalgaard
@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. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c

Re: [R] Lisp-like primitives in R

2007-09-08 Thread Peter Dalgaard
be lucky if the authors really had time to read r-help. :-) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL

Re: [R] ploting missing data

2007-09-07 Thread Peter Dalgaard
(fuenfzig~sw, data=data, subset=!is.na(fuenfzig)) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED

Re: [R] kendall test

2007-09-06 Thread Peter Dalgaard
Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

Re: [R] order intervals in a data.frame

2007-09-06 Thread Peter Dalgaard
Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

Re: [R] read.table

2007-09-06 Thread Peter Dalgaard
expect that you can read it once you know where to look.) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED

Re: [R] problems in read.table

2007-09-06 Thread Peter Dalgaard
://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. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics

Re: [R] How to extract part of an array?

2007-09-05 Thread Peter Dalgaard
29.97984 How about spl[,,Supported]? -p -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED

Re: [R] Table and ftable

2007-09-04 Thread Peter Dalgaard
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen

Re: [R] Confusion using functions to access the function call stack example section

2007-09-04 Thread Peter Dalgaard
of it. Possibly modify the examples you have already seen but print the entire sys.status(). -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45

Re: [R] Q: selecting a name when it is known as a string

2007-09-04 Thread Peter Dalgaard
names afterwards. It is (paraphrasing Thomas Lumley) often a good idea to reconsider the question if the answer involves this sort of trickery. Perhaps it is better handled by a loop or lapply over a list of variables? -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c

Re: [R] sin(pi)?

2007-09-03 Thread Peter Dalgaard
-guide.html and provide commented, minimal, self-contained, reproducible code. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918

Re: [R] size limitations in R

2007-09-01 Thread Peter Dalgaard
, as well as the documentation for SQLite itself, which has a facility for efficiently importing CSV and similar files directly to a SQLite database. eg: http://netadmintools.com/art572.html -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept

Re: [R] in cor.test, difference between exact=FALSE and exact=NULL

2007-09-01 Thread Peter Dalgaard
, but not for Kendall's tau. The login in that case is that NULL implies exact testing if n 50 and asymptotic otherwise. TRUE and FALSE enforces one or the other (if possible). On 8/31/07, Peter Dalgaard [EMAIL PROTECTED] wrote: Andrew Yee wrote: Pardon my ignorance, but is there a difference

Re: [R] Comparing transform to with

2007-09-01 Thread Peter Dalgaard
within() which is like with(), but stores any modified variables back. (This is very recent and may or may not make it to 2.6.0). -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University

Re: [R] in cor.test, difference between exact=FALSE and exact=NULL

2007-08-31 Thread Peter Dalgaard
__ 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. -- O__ Peter Dalgaard Øster

Re: [R] Time conversion problems

2007-08-22 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: Hi there I have precipitation data from 2004 to 2006 in varying resolutions (10 to 20min intervals) with time in seconds from beginnig of the year (summation) and a second variable as year. I applied follwing code to convert the time into a date:

Re: [R] Sphericity test in R for repeated measures ANOVA

2007-08-20 Thread Peter Dalgaard
Orou Gaoue wrote: Hi, Is there a way to do a sphericity test in R for repeated measures ANOVA (using aov or lme)? I can't find anything about it in the help. Thanks Orou There is for lm() with multivariate response (mauchly.test). For lme(), you can compare models with a corSymm

Re: [R] Question about unicode characters in tcltk

2007-08-18 Thread Peter Dalgaard
R Help wrote: hello list, Can someone help me figure out why the following code doesn't work? I'm trying to but both Greek letters and subscripts into a tcltk menu. The code creates all the mu's, and the 1 and 2 subscripts, but it won't create the 0. Is there a certain set of characters

Re: [R] Mann-Whitney U

2007-08-15 Thread Peter Dalgaard
Lucke, Joseph F wrote: R and SPSS are using different but equivalent statistics. R is using the rank sum of group1 adjusted for the mean rank. SPSS is using the rank sum of group2 adjusted for the mean rank. Close: It is the _minimum_ possible rank sum that is getting subtracted. If

Re: [R] R 2.5.1 configure problem

2007-08-14 Thread Peter Dalgaard
/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. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K

Re: [R] Question about unicode characters in tcltk

2007-08-14 Thread Peter Dalgaard
} {-width width Width 0 0} {-wraplength wrapLength WrapLength 0 0} % .a.b configure -font {Helvetica -12 bold} # the default, now shows \u2080 % .a.b configure -font {Roman -10} # back to Roman, *still* shows \u2080 ???!!! -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c

Re: [R] memory allocation glitches

2007-08-14 Thread Peter Dalgaard
Ben Bolker wrote: (not sure whether this is better for R-devel or R-help ...) Hardcore debugging is usually better off in R-devel. I'm leaving it in R-help though. I am currently trying to debug someone else's package (they're not available at the moment, and I would like it to work

Re: [R] Mann-Whitney U

2007-08-14 Thread Peter Dalgaard
Prof Brian Ripley wrote: On Tue, 14 Aug 2007, Natalie O'Toole wrote: Hi, Could someone please tell me how to perform a Mann-Whitney U test on a dataset with 2 groups where one group has more data values than another? I have split up my 2 groups into 2 columns in my .txt file i'm using

Re: [R] Combining two ANOVA outputs of different lengths

2007-08-10 Thread Peter Dalgaard
Christoph Scherber wrote: Dear R users, I have been trying to combine two anova outputs into one single table (for later publication). The outputs are of different length, and share only some common explanatory variables. Using merge() or melt() (from the reshape package) did not work

Re: [R] Rcmdr window border lost

2007-08-09 Thread Peter Dalgaard
Andy Weller wrote: OK, I tried completely removing and reinstalling R, but this has not worked - I am still missing window borders for Rcmdr. I am certain that everything is installed correctly and that all dependencies are met - there must be something trivial I am missing?! Thanks in

Re: [R] Need Help: Installing/Using xtable package

2007-08-09 Thread Peter Dalgaard
M. Jankowski wrote: Hi all, Let me know if I need to ask this question of the bioconductor group. I used the bioconductor utility to install this package and also the CRAN package.install function. My computer crashed a week ago. Today I reinstalled all my bioconductor/R packages. One of

Re: [R] Invert Likert-Scale Values

2007-08-05 Thread Peter Dalgaard
(Ted Harding) wrote: On 04-Aug-07 22:02:33, William Revelle wrote: Alexis and John, To reverse a Likert like item, subtract the item from the maximum acceptable value + the minimum acceptable value, That is, if x - 1:8 xreverse - 9-x Bill A few of us have suggested this, but

Re: [R] lme and aov

2007-08-03 Thread Peter Dalgaard
Gang Chen wrote: I have a mixed balanced ANOVA design with a between-subject factor (Grp) and a within-subject factor (Rsp). When I tried the following two commands which I thought are equivalent, fit.lme - lme(Beta ~ Grp*Rsp, random = ~1|Subj, Model); fit.aov - aov(Beta ~

Re: [R] lme and aov

2007-08-03 Thread Peter Dalgaard
Gang Chen wrote: Thanks a lot for clarification! I just started to learn programming in R for a week, and wanted to try a simple mixed design of balanced ANOVA with a between-subject factor (Grp) and a within-subject factor (Rsp), but I'm not sure whether I'm modeling the data correctly

Re: [R] - round() strange behaviour

2007-08-02 Thread Peter Dalgaard
Monica Pisica wrote: Hi, I am getting some strange results using round - it seems that it depends if the number before the decimal point is odd or even For example: round(1.5)[1] 2 round(2.5)[1] 2 While i would expect that round(2.5) be 3 and not 2. Do you have

Re: [R] the large dataset problem

2007-07-31 Thread Peter Dalgaard
(Ted Harding) wrote: On 30-Jul-07 11:40:47, Eric Doviak wrote: [...] Sympathies for the constraints you are operating in! The Introduction to R manual suggests modifying input files with Perl. Any tips on how to get started? Would Perl Data Language (PDL) be a good choice?

Re: [R] manipulating arrays

2007-07-30 Thread Peter Dalgaard
Henrique Dallazuanna wrote: Hi, I don't know if is the more elegant way, but: X-c(1,2,3,4,5) X - c(X[1], 0, X[2:5]) append(X, 0, 1) __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] About infinite value

2007-07-23 Thread Peter Dalgaard
can't, due to the computer representation of floating point numbers. 2. Package brobdingnag lets you do it anyway. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark

Re: [R] summary of linear fixed effects model is different than the HSAUR book

2007-07-22 Thread Peter Dalgaard
Christopher W. Ryan wrote: But on page 169, summary() is shown to produce additional columns in the fixed effects section, namely degrees of freedom and the P-value (with significance stars). How can I produce that output? Am I doing something wrong? Has lme4 changed? The latter. To

Re: [R] RAM, swap, Error: cannot allocate vector of size, Linux:

2007-07-19 Thread Peter Dalgaard
Feldman, Maximilian Jeffrey wrote: Dear Community, I am very new to the world of Linux and R and I have stumbled upon a problem that I cannot seem to resolve on my own. Here is the relevant background: I am working on a 64-bit Linux Fedora Core 6 OS. I using R version 2.5.1. I have 3.8 Gb

Re: [R] Strange warning in summary.lm

2007-07-19 Thread Peter Dalgaard
example which shows the behaviour? -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX

Re: [R] Strange warning in summary.lm

2007-07-19 Thread Peter Dalgaard
Prof Brian Ripley wrote: On Thu, 19 Jul 2007, Peter Dalgaard wrote: ONKELINX, Thierry wrote: The problem also exists in a clean workspace. But I've found the troublemaker. I had set options(OutDec = ,). Resetting this to options(OutDec = .) solved the problem. Thanks, Thierry

Re: [R] tapply

2007-07-19 Thread Peter Dalgaard
clearer. Much... Get the first record for each individual from (e.g.) icul.redux - subset(icul, !duplicated(id)) then use tapply as before using variables from icul.redux. Or in one go with( subset(icul, !duplicated(id)), tapply(aps, class, mean, na.rm=TRUE) ) -- O__ Peter

Re: [R] R equivalent to Matlab's Bayes net toolbox

2007-07-18 Thread Peter Dalgaard
On Wed, 2007-07-18 at 03:52 +, Jose wrote: The thing that I don't understand in the gR page is why there are so many different packages and why they are not very integrated: You have to understand the gR project for that. It started from a number of completely separate pieces of software

Re: [R] Sorting data frame by a string variable

2007-07-17 Thread Peter Dalgaard
Dimitri Liakhovitski wrote: I have a data frame MyData with 2 variables. One of the variables (String) contains a string of letters. How can I resort MyData by MyData$String (alphabetically) and then save the output as a sorted data file? I tried: o-order(MyData$String)

Re: [R] Hmisc variable labels as vector?

2007-07-16 Thread Peter Dalgaard
(mydata, label) should work. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX

Re: [R] table function

2007-07-16 Thread Peter Dalgaard
(class, infec)), but I'd prefer using duplicated() as in with(subset(x, !duplicated(id)), table(class, infec)) (notice that the latter tabulates the first record for each id, whereas the former will count ids multiple times if the change class or infec). -- O__ Peter Dalgaard

Re: [R] The $ operator and vectors

2007-07-13 Thread Peter Dalgaard
Is there a reason for the $ operator not evaluating the vector before executing? Yes, the evaluation rule for $ is like that Notice that it also didn't go looking for an object called A when you said test$A. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B

Re: [R] filling a list faster

2007-07-13 Thread Peter Dalgaard
, is it? As in if (i N) {l - c(l, vector(list,N); N - N*2} i.e. N-1; l - vector(list, N) system.time(for(i in (1:1e5)) { if (i N) {l - c(l, vector(list,N)); N - N*2} ; l[[i]] - c(i,i+1,i)}) user system elapsed 1.508 0.012 1.520 l[i+1:N]-NULL -- O__ Peter Dalgaard Øster

Re: [R] charset in graphics

2007-07-13 Thread Peter Dalgaard
=tolower(\u104\u116\u0118\u012e\u0172\u016a\u010c\u0160\u017d)) dev.off() -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918

Re: [R] charset in graphics

2007-07-13 Thread Peter Dalgaard
Prof Brian Ripley wrote: On Fri, 13 Jul 2007, Peter Dalgaard wrote: The correct incantation seems to be postscript(font=URWHelvetica, encoding=ISOLatin7) plot(0,main=tolower(\u104\u116\u0118\u012e\u0172\u016a\u010c\u0160\u017d)) dev.off() The encoding should happen automagically

Re: [R] Correlation matrix

2007-07-13 Thread Peter Dalgaard
(diag(V))? Negative elements?) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX

Re: [R] Compute rank within factor groups

2007-07-12 Thread Peter Dalgaard
Ken Williams wrote: Hi, I have a data.frame which is ordered by score, and has a factor column: Browse[1] wc[c(report,score)] report score 9 ADEA 0.96 8 ADEA 0.90 11 Asylum_FED9 0.86 3 ADEA 0.75 14 Asylum_FED9 0.60 5 ADEA

Re: [R] inquiry about anova and ancova

2007-07-11 Thread Peter Dalgaard
for effect of predictors, using multivariate tests, or F tests under sphericity assumptions. Have a look at example(anova.mlm); this mostly looks at cases where effects are tested against zero, but the last example involves a (bogus) between subject factor f. -- O__ Peter Dalgaard

Re: [R] type III ANOVA for a nested linear model

2007-07-11 Thread Peter Dalgaard
2 3 31.55 133 1 1 40.81 143 1 2 42.23 153 1 3 41.26 163 2 1 28.41 173 2 2 24.07 183 2 3 21.16 On Tue, 2007-07-10 at 13:54 +0200, Peter Dalgaard wrote: Carsten Jaeger wrote: Hello, is it possible

Re: [R] make error R-5.1 on sun solaris

2007-07-11 Thread Peter Dalgaard
Dan Powers wrote: I hope this is enough information to determine the problem. Thanks in advance for any help. Configure goes ok (I think) ./configure --prefix=$HOME --without-iconv R is now configured for sparc-sun-solaris2.9 Source directory: . Installation directory:

Re: [R] Repeated Measure different results to spss

2007-07-10 Thread Peter Dalgaard
)) ? With that modification, things look sane. Can't vouch for SPSS... (As a general matter, I prefer to do the factor conversions up front, rather than inside model formulas.) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099

Re: [R] type III ANOVA for a nested linear model

2007-07-10 Thread Peter Dalgaard
(This is essentially the same structure as Martin Bleichner had earlier today, also @web.de. What is this? an epidemic? ;-)) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen

Re: [R] Building R on Interix 6.0

2007-07-10 Thread Peter Dalgaard
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph

Re: [R] using the function unique(), but asking it to ignore a column of a data.frame

2007-07-09 Thread Peter Dalgaard
, reproducible code. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX

Re: [R] ANOVA: Does a Between-Subjects Factor belong in the Error Term?

2007-07-09 Thread Peter Dalgaard
Alex Baugh wrote: I am executing a Repeated Measures Analysis of Variance with 1 DV (LOCOMOTOR RESPONSE), 2 Within-Subjects Factors (AGE, ACOUSTIC CONDITION), and 1 Between-Subjects Factor (SEX). Does anyone know whether the between-subjects factor (SEX) belongs in the Error Term of the aov

Re: [R] How does the r-distribution function work

2007-07-06 Thread Peter Dalgaard
pieter claassen wrote: I am trying to understand what rbinom function does. Here is some sample code. Are both the invocations of bfunc effectively doing the same or I am missing the point? There are some newbie issues with your code (you are extending a on every iteration, and your

Re: [R] t.test

2007-07-06 Thread Peter Dalgaard
and the corresponding p value, either using a table or R's function for the t distibution. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918

Re: [R] Warning message: cannot create HTML package index

2007-07-06 Thread Peter Dalgaard
Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

Re: [R] Me again, about the horrible documentation of tcltk

2007-07-05 Thread Peter Dalgaard
Alberto Monteiro wrote: How on Earth can I know what are the arguments of any of the functions of the tcl/tk package? I tried hard to find, using all search engines available, looking deep into keywords of R, python's tkinter and tcl/tk, but nowhere I found anything remotely similar to a

Re: [R] Lookups in R

2007-07-04 Thread Peter Dalgaard
mfrumin wrote: Hey all; I'm a beginner++ user of R, trying to use it to do some processing of data sets of over 1M rows, and running into a snafu. imagine that my input is a huge table of transactions, each linked to a specif user id. as I run through the transactions, I need to update a

Re: [R] Lookups in R

2007-07-04 Thread Peter Dalgaard
the user table into the transaction table by indexing with transactions$userid, or you can use a merge operation. thanks, mike Peter Dalgaard wrote: mfrumin wrote: Hey all; I'm a beginner++ user of R, trying to use it to do some processing of data sets of over 1M rows, and running

Re: [R] focus to tkwindow after a PDF window pop up

2007-07-02 Thread Peter Dalgaard
Hao Liu wrote: Dear All: I currently have a TK window start a acroread window: However, when the acroread window is open, I can't get back to the TK window unless I close the acroead. I invoked the acroread window using: system(paste(acroread ,file, sep=)) anything I can do to make them

Re: [R] compute time span in months between two dates

2007-07-02 Thread Peter Dalgaard
Aydemir, Zava (FID) wrote: Hi, I am just starting to play with R. What is the recommended manner for calculating time spans between 2 dates? In particular, should I be using the chron or the date package (so far I just found how to calculate a timespan in terms of days)? Thanks I'd

Re: [R] exaustive subgrouping or combination

2007-06-29 Thread Peter Dalgaard
David Duffy wrote: Waverley [EMAIL PROTECTED] asked: Dear Colleagues, I am looking for a package or previous implemented R to subgroup and exaustively divide a vector of squence into 2 groups. -- Waverley @ Palo Alto Google [R] Generating all possible partitions and you will find

Re: [R] Comparison: glm() vs. bigglm()

2007-06-29 Thread Peter Dalgaard
This does leave some scope for roundoff to creep in. You may want to play with a lower setting of tol=... -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph

Re: [R] logistic regression and dummy variable coding

2007-06-29 Thread Peter Dalgaard
Li, Bingshan wrote: Hi Frank, I do not quite get you. What do you mean by simulation and speed issues? I do not see why they have to be considered in logistic regression. Exactly. So don't use techniques that are only needed when such issues do have to be considered. Thanks.

Re: [R] Dominant eigenvector displayed as third (Marco Visser)

2007-06-29 Thread Peter Dalgaard
Marco Visser wrote: Dear R users Experts, This is just a curiousity, I was wondering why the dominant eigenvetor and eigenvalue of the following matrix is given as the third. I guess this could complicate automatic selection procedures. 000005 1000

Re: [R] exaustive subgrouping or combination

2007-06-29 Thread Peter Dalgaard
David Duffy wrote: On Fri, 29 Jun 2007, Peter Dalgaard wrote: David Duffy wrote: Waverley [EMAIL PROTECTED] asked: Dear Colleagues, I am looking for a package or previous implemented R to subgroup and exaustively divide a vector of squence into 2 groups. -- Waverley @ Palo

[R] R 2.5.1 is released

2007-06-28 Thread Peter Dalgaard
for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team Peter Dalgaard These are the md5sums for the freshly created files, in case you wish to check that they are uncorrupted: a8efde35b940278de19730d326f58449 AUTHORS

Re: [R] : regular expressions: escaping a dot

2007-06-28 Thread Peter Dalgaard
...) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

Re: [R] aov and lme differ with interaction in oats example of MASS?

2007-06-28 Thread Peter Dalgaard
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University

Re: [R] Repeat if

2007-06-28 Thread Peter Dalgaard
)) -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

Re: [R] ANOVA non-sphericity test and corrections (eg, Greenhouse-Geisser)

2007-06-25 Thread Peter Dalgaard
DarrenWeber wrote: I'm an experimental psychologist and when I run ANOVA analysis in SPSS, I normally ask for a test of non-sphericity (Box's M-test). I also ask for output of the corrections for non-sphericity, such as Greenhouse-Geisser and Huhn-Feldt. These tests and correction factors

Re: [R] Source code for rlogis

2007-06-25 Thread Peter Dalgaard
Anup Nandialath wrote: Dear friends, I was trying to read the source code for rlogis but ran into a roadblock. It shows [[1]] function (n, location = 0, scale = 1) .Internal(rlogis(n, location, scale)) environment: namespace:stats Is is possible to access the source code for the same.

Re: [R] FW: Suse RPM installation problem

2007-06-22 Thread Peter Dalgaard
libpng, possibly with --force. -Original Message- From: Peter Dalgaard [mailto:[EMAIL PROTECTED] Sent: Thu 6/21/2007 6:34 PM To: Stephen Henderson Cc: r-help@stat.math.ethz.ch Subject: Re: [R] FW: Suse RPM installation problem Stephen Henderson wrote: Hello I am trying

Re: [R] Replace number with month

2007-06-21 Thread Peter Dalgaard
soaked in the process... (by an unnecessary conversion to character which is subject to alphabetical sorting) I think the canonical way is factor(MM, levels=1:12, labels=month.name) (and the levels=1:12 may not even be necessary when all 12 months are present) -- O__ Peter Dalgaard

Re: [R] FW: Suse RPM installation problem

2007-06-21 Thread Peter Dalgaard
Stephen Henderson wrote: Hello I am trying to install the R RPM for Suse 10.0 on an x86_64 PC. However I am failing a dependency for libpng12.so.0 straight away PC5-140:/home/rmgzshd # rpm -i R-base-2.5.0-2.1.x86_64.rpm error: Failed dependencies:

Re: [R] anova on data means

2007-06-21 Thread Peter Dalgaard
Ronaldo Reis Junior wrote: Em Quinta 21 Junho 2007 16:56, Thomas Miller escreveu: I am transitioning from SAS to R and am struggling with a relatively simple analysis. Have tried Venables and Ripley and other guides but can't find a solution. I have an experiment with 12 tanks. Each

Re: [R] Got Unexpected ELSE error

2007-06-20 Thread Peter Dalgaard
Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

Re: [R] How to compute Wilk's Lambda

2007-06-19 Thread Peter Dalgaard
Dietrich Trenkler wrote: Dear helpeRs, the following data set comes from Johnson/Wichern: Applied Multivariate Statistical Analysis, 6th ed, pp. 304-306. /X - structure(c(9, 6, 9, 3, 2, 7), .Dim = as.integer(c(3, 2))) Y - structure(c(0, 2, 4, 0), .Dim = as.integer(c(2, 2))) Z -

Re: [R] how to obtain the OR and 95%CI with 1 SD change of a continue variable

2007-06-18 Thread Peter Dalgaard
-- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

Re: [R] removing values from a vector, where both the value and its name are the same?

2007-06-15 Thread Peter Dalgaard
Patrick Burns wrote: In case it matters, the given solution has a problem if the data look like: x - c(sum=77, test=99, sum=99) By the description all three elements should be kept, but the duplicated solution throws out the last element. A more complicated solution is:

Re: [R] Preserving dates in Excel.

2007-06-14 Thread Peter Dalgaard
1,2007-06-02,0.798763513018864 2,2007-06-03,-0.738162331606612 3,2007-06-04,-1.36267086906438 4,2007-06-05,0.000766808196322155 5,2007-06-06,0.671908853312511 -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K

Re: [R] Problems with na.rm=T

2007-06-14 Thread Peter Dalgaard
- x[!is.na(x)] . This has never happened before. I don't recall having done anything that might generate this message. How do I fix this? Rename the object that you suddenly called T... (And notice that some people will advise you to use na.rm=TRUE to avoid this) -- O__ Peter

Re: [R] Error: bad value ? what is that?

2007-06-14 Thread Peter Dalgaard
Jose Quesada wrote: Hi, I'm finding a very strange error. For no good reason my R console (Rgui.exe, R 2.5.0, under win XP) stops producing anything meaningful, and just returns: Error: bad value to _whatever_ I enter. It starts doing this after a while, not immediately when launched.

Re: [R] R Book Advice Needed

2007-06-13 Thread Peter Dalgaard
- W. N. Venables 3-Statistics: An Introduction using R - Michael J. Crawley 4-R Graphics (Computer Science and Data Analysis) - Paul Murrell 5-A Handbook of Statistical Analyses Using R - Brian S. Everitt 6-Introductory Statistics with R - Peter Dalgaard 7-Using R for Introductory Statistics

Re: [R] Rounding?

2007-06-11 Thread Peter Dalgaard
Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

Re: [R] Tools For Preparing Data For Analysis

2007-06-10 Thread Peter Dalgaard
Douglas Bates wrote: Frank Harrell indicated that it is possible to do a lot of difficult data transformation within R itself if you try hard enough but that sometimes means working against the S language and its whole object view to accomplish what you want and it can require knowledge of

Re: [R] lme vs. SAS proc mixed. Point estimates and SEs are the same, DFs are different

2007-06-05 Thread Peter Dalgaard
John Sorkin wrote: R 2.3 Windows XP I am trying to understand lme. My aim is to run a random effects regression in which the intercept and jweek are random effects. I am comparing output from SAS PROC MIXED with output from R. The point estimates and the SEs are the same, however the DFs

Re: [R] lme vs. SAS proc mixed. Point estimates and SEs are the same, DFs are different

2007-06-05 Thread Peter Dalgaard
Peter Dalgaard wrote: John Sorkin wrote: R 2.3 Windows XP I am trying to understand lme. My aim is to run a random effects regression in which the intercept and jweek are random effects. I am comparing output from SAS PROC MIXED with output from R. The point estimates and the SEs

Re: [R] Lines to plots with a for-loop

2007-06-05 Thread Peter Dalgaard
Saanisto, Taija wrote: Hello all, I'm plotting several graphs with a for-loop with a code: par(mfrow=c(3,4)) for(i in levels(fHCGB$code)) with(subset(fHCGB,code==i), plot(pooledPlateIntra, type=b, ylim=ylim, xlab=code, ylab=CV%)) With which I have no problems.. However I need to add

Re: [R] R CMD BATCH command

2007-06-05 Thread Peter Dalgaard
Austin, Peter wrote: The version of R on our unix system has been updated to version 2.5.0. When I type the following command at the unix prompt: 'R CMD BATCH filename' I receive the following error message: Error in Sys.unsetenv(R_BATCH) : 'Sys.unsetenv' is not available on this system

Re: [R] getting t.test to work with apply()

2007-06-04 Thread Peter Dalgaard
://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. -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept

Re: [R] getting t.test to work with apply()

2007-06-04 Thread Peter Dalgaard
() is not going to work unless you use as.data.frame(t(raw.sample)) first. -pd Thanks, Andrew On 6/4/07, Peter Dalgaard [EMAIL PROTECTED] wrote: Petr Klasterecky wrote: Andrew Yee napsal(a): Hi, I'm interested in using apply() with t.test() on a data.frame

Re: [R] recompile R using ActiveTcl

2007-06-03 Thread Peter Dalgaard
James Foadi wrote: Dear all, While running some code requiring the tcltk package I have realised that my version of R was compiled with the Tcl/Tk libraries included in Fedora 6. It would be for me better to use the ActiveTcl libraries (which I have under /usr/local), and I'm aware that

Re: [R] Subscript in axis label

2007-06-03 Thread Peter Dalgaard
Tobias Verbeke wrote: [EMAIL PROTECTED] wrote: Dear R help list members, I am experiencing difficulty in trying to generate a subscript '2' in an axis label. Although I can get the '2' into a subscript using expression(), R then forces me to leave at least one space between the '2' and

Re: [R] about lex/yacc

2007-05-23 Thread Peter Dalgaard
for this list). -- O__ Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907

  1   2   3   4   5   6   7   8   9   10   >