Re: [R] can I add line breaks to the paste() function?

2010-09-30 Thread Jeremy Miles
Try using cat instead. Then "\n" is the new line character. E.g. cat("1st line\n2nd line\n") Jeremy On 30 September 2010 13:30, David LeBauer wrote: > Can I add a line break to the paste() function to return the following: > > 'this is the firs

Re: [R] R Founding

2010-09-16 Thread Jeremy Miles
any open source projects have a 'donate with paypal' button. Jeremy -- Jeremy Miles Psychology Research Methods Wiki: www.researchmethodsinpsychology.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] which one give clear picture-pdf, jpg or tiff?

2010-08-19 Thread Jeremy Miles
> 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 cod

Re: [R] meta-analysis in R

2010-08-19 Thread Jeremy Miles
> books. Can anyone > kindly help? Thank you in advance. > We can try, but tell us what you want to do. Jeremy -- Jeremy Miles Psychology Research Methods Wiki: www.researchmethodsinpsychology.com __ R-help@r-project.org mailing list h

[R] Stopping precision using 'optim'

2010-08-05 Thread Jeremy Beaulieu
Hi all~ I am wondering if it is possible to alter the stopping precision for parameters estimated using the 'optim'? If it helps, I am minimizing the log-likelihood of a function using constraints (i.e. L-BFG-S). -Jeremy __ R-help@r-p

Re: [R] A %nin% operator?

2010-08-05 Thread Jeremy Miles
Ken Williams > > > David Winsemius, MD > West Hartford, CT > > __ > 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 >

[R] Function to return variable name

2010-07-28 Thread Jeremy Miles
I'd like a function that returns the variable name. As in: MyData$Var1 Would return: Var1 There should be a straightforward way to do this, but I can't see it. Thanks, Jeremy -- Jeremy Miles Psychology Research Methods Wiki: www.researchmethodsinpsyc

Re: [R] Note on PCA (not directly with R)

2010-06-30 Thread Jeremy Miles
be similar enough to start off with) found that they were three dimensional. Jeremy On 28 June 2010 02:27, Christofer Bogaso wrote: > Dear all, I am looking for some interactive study materials on Principal > component analysis. Basically I would like to know what we are actually > doing

Re: [R] Logistic regression with multiple imputation

2010-06-29 Thread Jeremy Miles
then you analyze each dataset in the conventional way, then you combine the results. There are two (that I know of) packages for imputaton - these are mi and mice. rseek.org will find them for you. Hope that helps, Jeremy On 29 June 2010 22:14, Daniel Chen wrote: > Hi, > > I am a

Re: [R] Popularity of R, SAS, SPSS, Stata...

2010-06-24 Thread Jeremy Miles
I think you need speech marks though: http://www.google.com/insights/search/#q=%22r%20code%20for%22%2C%22sas%20code%20for%22%2C%22spss%20code%20for%22&cmpt=q (There's not a lot of people looking for SPSS code ...) Jeremy On 24 June 2010 16:56, Joris Meys wrote: > Nice ide

Re: [R] Is there a non-parametric repeated-measures Anova in R ?

2010-06-16 Thread Jeremy Miles
It's possible to use the ordinal regression model if your data are ordered categories. The standard non-parametric test is the Friedman test. ?friedman.test Jeremy On 16 June 2010 10:22, Tal Galili wrote: > Hello Prof. Harrell and dear R-help mailing list, > > I wish to

[R] Dataframe to word, using R2wd

2010-05-14 Thread Jeremy Miles
ayout. (I can't work out what the table is - it seems to be nested tables. Converting to text gives one long column.) Using wdBody(MyDataFrame) or wdNormal(MyDataFrame) Is there another way to use R2wd to send the dataframe to word? Thanks (in advance) Jeremy -- Jeremy Miles Psyc

Re: [R] sprintf() and return() oddity

2010-04-27 Thread Raw, Jeremy, P.E.
mply present it with an object). To get the same behavior inside the function and still return the value 'a', just do this: x <- function() { a <- 888 + print(sprintf("xxx %s", a) ) + return(a) } That just makes explicit what the combination of function + interaction

Re: [R] Nonparametric generalization of ANOVA

2010-03-05 Thread Jeremy Miles
Two links for you which will get your answer much quicker than a mailing list: http://lmgtfy.com/?q=non-parametric+anova+R or http://www.justfuckinggoogleit.com/search.pl?query=non+parametric+anova+R Jeremy On 5 March 2010 05:19, blue sky wrote: > My interpretation of the relation betwee

Re: [R] R ANOVA gives diferent results than SPSS

2010-02-11 Thread Jeremy Miles
.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jeremy Miles Psychology Research Methods Wiki: www.researchmethodsinpsychology.com __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

Re: [R] Bar Plots: Error Bars

2009-12-03 Thread Jeremy Baxter
) max <- apply (marks, 2, max) min <- apply (marks, 2, min) arrows(thegraph, min, thegraph, max, code=3, angle=90, length=0.125) HTH, Jeremy > Hey Everyone, > > I'm pretty new at R and wanted to try and mak

Re: [R] Structural Equation Models(SEM)

2009-12-02 Thread Jeremy Miles
iance matrix at each iteration). However, the fact that it's not hard to make the change, and that no one has made the change, is another argument that it's not a change that needs to be made. Jeremy 2009/12/2 Ralf Finne : > Hi R-colleagues. > > I have been using the se

Re: [R] Simple 2-Way Anova issue in R

2009-11-08 Thread Jeremy Miles
If I've understood correctly, you have cell sizes of 1. This is not enough. ANOVA compares within group variance to between group variance, and your within group variances are zero. You need more data, or to collapse some cells. Jeremy 2009/11/8 znd : > > Hello, I'm new to

[R] passing character vectors to FORTRAN

2009-09-04 Thread Silver, Jeremy David
ers should be safe, many systems allow up to 32767 characters: http://www.star.le.ac.uk/~cgp/prof77.html#tth_sEc5.1). Despite these weaknesses, it looks like (at least on some systems) it is possible to pass character vectors to FORTRAN subroutines, avoiding the restrictions suggested in R-Exts.

[R] attach package

2009-08-26 Thread Jeremy MAZET
Hello, Is there a solution to attach a package without run the hook function .onAttach() Thanks Jérémy Mazet [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

[R] installing R on Solaris 10

2009-08-06 Thread Jeremy Willis
exist unable to fix attributes" The initial install appears to be performed and when I choose to display R project info it displays: "ld.so.1: R: fatal: libreadline.so.5: open failed: No such file or directory Killed" Any ideas as to what I am missing or forgetting? Thanks in a

Re: [R] pchisq error

2009-01-19 Thread Jeremy Silver
oops. . . . Turning it into a void function fixed the problem! Thanks. Jeremy Thomas Lumley wrote: > > I don't get the error, but I assume it's because your C function > returns a double and .C() assumes it is a void function. > > -thomas > > > On Mon

[R] pchisq error

2009-01-19 Thread Jeremy Silver
); printf("stat = %f, p = %f\n",stat,pval); return pval; } # Can anybody explain this behaviour? Thanks, Jeremy -- / Jeremy Silver Research Assistant University of Copenhagen, Denmark ph: +45 3532 7917 email: j.

Re: [R] calculating an N50

2008-11-25 Thread Jeremy Leipzig
> Given a set of integers of different values how do I calculate the > minimum number of the largest of integers that are required, when > summed, to equal 50% of the total sum of the the set? > Actually I need the value of the smallest member such that the sum of all members equal or greater to th

[R] calculating an N50

2008-11-25 Thread Jeremy Leipzig
Given a set of integers of different values how do I calculate the minimum number of the largest of integers that are required, when summed, to equal 50% of the total sum of the the set? For example, > length(myTable$lgth) [1] 303403 > sum(myTable$lgth) [1] 4735396 I know through brute force that

[R] radial.plot(plotrix) - plotting multiple polygons?

2008-11-13 Thread Jeremy Claisse
adial plot. Thanks, Jeremy __ 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.

[R] problem installing and updating packages

2008-11-13 Thread Jeremy Claisse
ions would be much appreciated. Thanks, Jeremy [[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 pr

[R] Estimating mean and standard deviation of lognormal distribution between two points

2008-11-06 Thread Jeremy Beaulieu
This is more of a statistical question. Let's say I have two numbers. One is a lower bound and the other is a point estimate to the right of the lower bound. Now, let's say I want to be able to estimate the mean and standard deviation of a lognormal distribution, where 95% of the density falls w

[R] DOE for logistic models

2008-07-15 Thread Jeremy MAZET
Hello everyone, Is there any tools to build experimental designs for logistic models? Thanks, Jérémy Mazet Département Génie des procédés SOREDAB La Tremblaye 78125 La Boissière Ecole Tel : 01 34 94 37 09 [[alternative HTML version deleted]] _

[R] RE PCA analysis

2008-06-17 Thread Jeremy MAZET
Hi, You could try the FactoMineR package and the PCA and plot.PCA functions http://factominer.free.fr/ Jérémy Mazet Département Génie des procédés SOREDAB La Tremblaye 78125 La Boissière Ecole Tel : 01 34 94 37 09 Monna Nygård <[EMAIL PROTECTED]> Envoyé par : [EMAIL PROTECTED] 17/06/2008 1

[R] [R-pkgs] New package: yaml 1.0 released to CRAN

2008-03-25 Thread Jeremy Stephens
rser that Ruby and other languages use to parse YAML. For more information, please visit: http://biostat.mc.vanderbilt.edu/YamlR Thanks! Jeremy -- Jeremy Stephens Computer Systems Analyst I Department of Biostatistics Vanderbilt University ___ R-packag

Re: [R] How to write a Greek letter in a graph?

2008-01-19 Thread Jeremy Baxter
i.e. i am assuming you want pi subscript zero. An example of using text would be text(6,10,expression( y==1.5*x+10)) HTH, Jeremy On Friday 18 January 2008 10:16:22 pm cathelf wrote: > Hi, > Sorry for bothering you again. I have a small question about the graph and > the following is

Re: [R] Select a group of data from a file

2008-01-18 Thread Jeremy Baxter
e=TRUE) the.old.data<-cbind(Var1,Var2) head(the.old.data) Var1 Var2 [1,]8 10 [2,]1 10 the.new.data <- subset(the.old.data, Var2==1) the.new.data HTH, Jeremy On Friday 18 January 2008 10:33:51 LA SPINA, MICHELANGELO wrote: > I've a file with several data six variables

[R] nlrq coefficients querry

2008-01-15 Thread Jeremy VanDerWal
s 2 commands I am using R2.5.1 with quantreg 4.10 on an 64-bit xp system. I have verified this same error occurs on an 32-bit xp system. Any suggestion to correct this, or as a work-a-round would be greatly appreciated. Cheers, Jeremy [[alternative HTML ver

[R] bug Rcmdr

2008-01-04 Thread jeremy . mazet
Hello, If I run the script : "a<-2 ; a<-a+5 ; a" whith the "submit" buton in Rcmdr the result is 12 !!! But if I run the script "a<-2 ; b<-a+5 ; b" there is no problem and the result is 7. I think there is a bug in the function "onSubmit". Thanks, [[alternative HTML version deleted]]

[R] A question about lme object

2007-11-02 Thread Jeremy Lu
Hi, I have a question about the lme function in R. My question is: After I got the object from function lme, why the numIter value of the object is always NULL? Following is my code: jjww<-lme(y~x*zz,data=simul,random=~x|group, control=lmeControl(returnObject=TRUE)) attributes(jjww) jjww$nu

[R] Question about lme object

2007-11-01 Thread Jeremy Lu
Hi, I have a question about the lme function in R. My question is: After I got the object from function lme, why the numIter value of the object is always NULL? Following is my code: jjww<-lme(y~x*zz,data=simul,random=~x|group, control=lmeControl(returnObject=TRUE)) attributes(jjww) jjww$nu

[R] A question about lme object

2007-11-01 Thread Jeremy Lu
I have a question about the lme function in R. My question is: After I got the object from function lme, why the numIter value of the object is always NULL? Following is my code: jjww<-lme(y~x*zz,data=simul,random=~x|group, control=lmeControl(returnObject=TRUE)) attributes(jjww) jjww$numIter

<    1   2