Re: [R] How should I organize data to compare differences in matchedpairs?

2008-01-25 Thread Thomas Levine
I have everything in the data frame now. The calculations I need to preform for each round are slightly different. How do I specify to make one calculation for one round and one for the other? (One round is called "C", and the other is "F") Thomas Levine On Thu, 2008-01-24 at 18:23 -0500, Thomas

Promova seus Neg�cios na Internet

2008-01-25 Thread Andre Luis
This is a text part of the message. It is shown for the users of old-style e-mail clients [[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

Re: [R] Bar width and labels in barchart

2008-01-25 Thread Deepayan Sarkar
On 1/25/08, Spilak,Jacqueline [Edm] <[EMAIL PROTECTED]> wrote: > > -Original Message- > From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 24, 2008 9:56 AM > To: Spilak,Jacqueline [Edm] > Cc: r-help@r-project.org > Subject: *SPAM* Re: [R] Bar width and labels

Re: [R] Fourier Analysis and Curve Fitting in R

2008-01-25 Thread Rolf Turner
On 26/01/2008, at 10:54 AM, Carson Farmer wrote: > Dear List, > > I am attempting to perform a harmonic analysis on a time series of > snow > depth, in which the annual curve is essentially asymmetric (i.e. snow > accumulates slowly over time, and the subsequent melt occurs > relatively > rap

[R] Please help me

2008-01-25 Thread alyaa wakf
Hi, The following code, from Angelo Canty article on line "Resampling Methods in R: the boot Package, 2002", works fine for Angelo Canty using R 2.6.0 on Windows XP. It also works for me using R 1.2.1 and S-PLUS 2000 on Windows XP after installing the S-PLUS bootstrap

Re: [R] Function for translation of a list into a matrix as used by ordination?

2008-01-25 Thread John Kane
I think you can do this fairly easily with the reshape package. Is this basically what you want? x <- "Plot1 Species1Abundance1 Plot1 Species2Abundance2 Plot2 Species1Abundance1 Plot2 Species3Abundance3 " xx <- read.table(textConnection(x), header=TRUE, as.is=TRUE); xx names

Re: [R] Function for translation of a list into a matrix as used byordination?

2008-01-25 Thread Christos Hatzis
Take a look at ?reshape - it is used to convert between 'long' and 'wide' formats of data tables (frames). -Christos > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Friday, January 25, 2008 4:30 PM > To: r-help@r-proj

[R] Fourier Analysis and Curve Fitting in R

2008-01-25 Thread Carson Farmer
Dear List, I am attempting to perform a harmonic analysis on a time series of snow depth, in which the annual curve is essentially asymmetric (i.e. snow accumulates slowly over time, and the subsequent melt occurs relatively rapidly). I am trying to fit a curve to the data, however, the actual

[R] Function for translation of a list into a matrix as used by ordination?

2008-01-25 Thread Billy_Schweiger
Hello. Does anyone know of an existing function that takes a list in the form of: Plot1 Species1Abundance1 Plot1 Species2Abundance2 Plot2 Species1Abundance1 Plot2 Species3Abundance3 . . . PlotN SpeciesNAbundanceN and translates into a matrix in the form of Species1

[R] Trouble setting up correlation structure in lme

2008-01-25 Thread Gang Chen
Hi, I'm trying to set up AR(1) as a correlation structure in modeling some data (attached file data.txt in text format) with lme, but have trouble getting it to work. Incent, Correctness, and Oppor are 3 categorical variables, Beta is a response variable, and Time is an equally-spaced variable wit

Re: [R] formula for nls

2008-01-25 Thread Christian Ritz
Hi Jarek, an alternative approach is to provide more precise starting values! It pays off to realise that it's possible to find quite good guesses for some of the parameters in your model function: t ~ tr+(ts-tr)/((1+(a*h)^n)^(1-(1/n))) The parameters tr and ts correspond to the re

[R] Help Me to Adjust the R Code

2008-01-25 Thread alyaa wakf
YAHOO.Shortcuts.hasSensitiveText = false; YAHOO.Shortcuts.sensitivityType = []; YAHOO.Shortcuts.doUlt = false; YAHOO.Shortcuts.location = "us"; YAHOO.Shortcuts.lang = "us"; YAHOO.Shortcuts.document_id = 0; YAHOO.Shortcuts.document_type = ""; YAHOO.Shortcuts.document_title = ""; YAHOO.Shortcu

Re: [R] two histograms in the same graph

2008-01-25 Thread hadley wickham
On Jan 25, 2008 2:04 PM, Domenico Vistocco <[EMAIL PROTECTED]> wrote: > You could use ggplot2: > > library(ggplot2) > x=rnorm(100) > y=rnorm(100) > df=melt(data.frame(x,y)) > #for "vertical" histogram > ggplot(data=df,aes(x=value))+geom_histogram()+facet_grid(.~variable) > #for "horizontal" histogr

Re: [R] two histograms in the same graph

2008-01-25 Thread Domenico Vistocco
You could use ggplot2: library(ggplot2) x=rnorm(100) y=rnorm(100) df=melt(data.frame(x,y)) #for "vertical" histogram ggplot(data=df,aes(x=value))+geom_histogram()+facet_grid(.~variable) #for "horizontal" histogram ggplot(data=df,aes(x=value))+geom_histogram()+facet_grid(.~variable) + coord_flip

[R] interactive menu in scripts

2008-01-25 Thread WCD
Hello, I would like to make my R script more interactive. Well, I want the script to work like this: I run the script from R Console and it offers me some options (press 1 for something, or press 2 for something else). After pressing 1 or 2, do corresponding procedure. I am not able to find out

[R] about existing packages and cross-posting; was: Re: Help

2008-01-25 Thread Uwe Ligges
Benilton Carvalho wrote: > I'm afraid others might have some other recommendations regarding your > message... but the first one is that the bioconductor mailing list is > more appropriate to this... 1. We all three should note that we should use sensible subject lines. 2. You, Benilton, should

Re: [R] Help

2008-01-25 Thread Uwe Ligges
Prateek Singh wrote: > Hi, > > I got command to execute R code from Mark. > > but it was showing error.. > Error in library(hopach) : there is no package called 'hopach' > > Does it mean this library hopach hopach is a package. > is not installed. But I have installed complete Bioconductor

Re: [R] Help

2008-01-25 Thread Benilton Carvalho
I'm afraid others might have some other recommendations regarding your message... but the first one is that the bioconductor mailing list is more appropriate to this... Apparently you didn't install all the BioConductor packages (and I'm glad you didn't :-) ). Just install the package you

[R] Help

2008-01-25 Thread Prateek Singh
Hi, I got command to execute R code from Mark. but it was showing error.. Error in library(hopach) : there is no package called 'hopach' Does it mean this library hopach is not installed. But I have installed complete Bioconductor package. I am confused. can you help me in this thanks Regards,

Re: [R] How to execute R code

2008-01-25 Thread Roland Rau
Hi, one possibility is to start R in a terminal window by entering R then R should be started. now simply enter: source(exmaple.r) and everything should be fine. Hope this helps, Roland Prateek Singh wrote: > Hi, > > I have 'R' code in file. saved it as exmaple.r > here is the code... > >

Re: [R] two histograms in the same graph

2008-01-25 Thread David Daniel
You might look at the method histbackback (back-to-back histograms) in package Hmisc. At the time I looked at this package about a year ago, I could not get it working on my Mac, so I don't actually know what the results look like, but I have created them before in XLispStat and found them

Re: [R] Popbio - can't find or load

2008-01-25 Thread Roy Mendelssohn
http://cran.r-project.org/src/contrib/Descriptions/popbio.html On Jan 25, 2008, at 10:51 AM, Michelle DePrenger-Levin wrote: > Hello, > > > > I'm in need of running a PVA and want to load {popbio}. However, I > can't find > it. I can't see where or how to load it. I have added repositories and

Re: [R] Popbio - can't find or load

2008-01-25 Thread Henrique Dallazuanna
http://cran.r-project.org/src/contrib/Descriptions/popbio.html On 25/01/2008, Michelle DePrenger-Levin <[EMAIL PROTECTED]> wrote: > Hello, > > > > I'm in need of running a PVA and want to load {popbio}. However, I can't find > it. I can't see where or how to load it. I have added repositories and

[R] Popbio - can't find or load

2008-01-25 Thread Michelle DePrenger-Levin
Hello, I'm in need of running a PVA and want to load {popbio}. However, I can't find it. I can't see where or how to load it. I have added repositories and changed the CRAN mirror site. I see {polynom} and {popgen} but no {popbio} between. What am I doing wrong? Thanks, Michelle

Re: [R] Need Advice with C# Program to Create and Display Cusum Chart

2008-01-25 Thread Dieter Menne
marinercapital.com> writes: > > I need to write a C# program to create and display Cusum chart from any > of the packages, > spc, qcc or strucchange. > > 1-The data resides in a MS SQL Database. The C# program will handle > obtaining the data for the requisite types of samples. It is easy t

Re: [R] nlsList (nlme) error

2008-01-25 Thread Dieter Menne
Rick DeShon msu.edu> writes: .. > When I use nlsList code that is virtually identical to the example in > the doc file I get the following error. .. > "Error in nlsList.formula(RT ~ SSasymp(trial, Asym, R0, lrc), > data = df.group, : > Data must be a groupedData object if formula d

Re: [R] RGL Crash with large data sets.

2008-01-25 Thread Duncan Murdoch
On 1/25/2008 12:55 PM, Remund, Todd wrote: > I have had a strange problem with rgl. I am currently switching from a > desktop computer to a workstation. When I get a very large data set and > run spectro3D, the computations run then the window with the 3d plot > appears it doesn't show the da

Re: [R] plotting gridlines

2008-01-25 Thread Bert Gunter
Or you can use lattice's xyplot(..., type = c("p","g")) ?panel.xyplot provides details -- Bert Gunter Genentech -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Kane Sent: Friday, January 25, 2008 9:49 AM To: John Lande; r-help@r-project.org Subject

[R] nlsList (nlme) error

2008-01-25 Thread Rick DeShon
Hi All. I'm trying to run nlsList an getting an error that makes no sense to me. I have accuracy and reaction time data over many trials for each person (id) When I use nlsList code that is virtually identical to the example in the doc file I get the following error. I've tried everything I cou

[R] RGL Crash with large data sets.

2008-01-25 Thread Remund, Todd
I have had a strange problem with rgl. I am currently switching from a desktop computer to a workstation. When I get a very large data set and run spectro3D, the computations run then the window with the 3d plot appears it doesn't show the data inside and immediately shuts down R. The computers h

Re: [R] plotting gridlines

2008-01-25 Thread John Kane
?grid --- John Lande <[EMAIL PROTECTED]> wrote: > dear all, > > I have a very simple question but I could not figure > out. > > I need to make plots with grid in the background. > > something like I old retrive like this > > a=runif(100)*10 > b=runif(100)*10 > plot(a,b, pch=20, xlim=c(0, rou

Re: [R] Help - linear regression

2008-01-25 Thread Mark Difford
Hi All, Thanjuvar wrote: >> model2<-lm(lavi~age+sex+age*race+diabetes+hypertension, data=tb1) David wrote: >> in the second equation you are only including the interaction of >> age*race, >> the main effect of age, but not the main effect of race which is what >> came out significant >> in y

Re: [R] Bar width and labels in barchart

2008-01-25 Thread Spilak,Jacqueline [Edm]
-Original Message- From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 9:56 AM To: Spilak,Jacqueline [Edm] Cc: r-help@r-project.org Subject: *SPAM* Re: [R] Bar width and labels in barchart On 1/23/08, Spilak,Jacqueline [Edm] <[EMAIL PROTECTED]> wrote

[R] How to execute R code

2008-01-25 Thread Prateek Singh
Hi, I have 'R' code in file. saved it as exmaple.r here is the code... library("hopach") GSE <- read.table("gene_expression_data",sep="\t",header=TRUE,row.names=TRUE) gene.dist <- distancematrix(t(GSE),d="euclid") gene.hobj <- hopach(t(GSE), dmat=gene.dist, mss="med") labelstosil(gene.hobj$cl

Re: [R] survey: estimating a covariance matrix

2008-01-25 Thread Thomas Lumley
On Wed, 23 Jan 2008, Daniel Oberski wrote: > Hello > > Does anybody happen to know if it is possible to use the survey package to > estimate a covariance matrix from a complex survey? Yes. svyvar() in the survey package estimates a population covariance matrix. It doesn't give standard errors f

Re: [R] accessing the indices of outliers in a data frame boxplot

2008-01-25 Thread Chuck Cleland
On 1/25/2008 11:39 AM, Karin Lagesen wrote: > I have a data frame containing columns which are factors. I use this > to make boxplots for the data, with one box per factor. I would now > like to get at the data in the data frame which corresponds to the > outliers. I have so far found the $out, whi

Re: [R] *SOLVED* latex{Hmisc} cannot find xdvi on MAC OS X

2008-01-25 Thread Kevin E. Thorpe
With thanks to all who responded, especially Charles Berry and Don MacQueen, my student has everything working. The final solution was: 1. Install X11 and X11SDK (or make sure they are installed). 2. There is a button for starting X11 within the R GUI. 3. Sys.setenv( PATH=paste(Sys.getenv("PATH")

[R] accessing the indices of outliers in a data frame boxplot

2008-01-25 Thread Karin Lagesen
I have a data frame containing columns which are factors. I use this to make boxplots for the data, with one box per factor. I would now like to get at the data in the data frame which corresponds to the outliers. I have so far found the $out, which gives "the values of any data points which lie b

[R] Trouble setting up correlation structure in lme

2008-01-25 Thread Gang Chen
Hi, I'm trying to set up AR(1) as a correlation structure in modeling some data (attached file data.txt in text format) with lme, but have trouble getting it to work. Incent, Correctness, and Oppor are 3 categorical variables, Beta is a response variable, and Time is an equally-spaced variable wit

Re: [R] How can I join two lists?

2008-01-25 Thread Gabor Csardi
What about reading the last four lines of this email? G. On Fri, Jan 25, 2008 at 04:45:04PM +0100, [EMAIL PROTECTED] wrote: > How can I join two lists? I have q1 and q2 and I want to merge them. I [...] > __ > R-help@r-project.org mailing list > http

Re: [R] How can I join two lists?

2008-01-25 Thread N. Lapidus
Try c(q1,q2) Nael On Jan 25, 2008 4:45 PM, <[EMAIL PROTECTED]> wrote: > How can I join two lists? I have q1 and q2 and I want to merge them. I > have tried to use the comand merge, but not work. Any solutions? Thanks! > > > q1 > $Input1 > 7.84615384615385 > 0.5 > > $Input2 > 8.92307

[R] How can I join two lists?

2008-01-25 Thread crebelo
How can I join two lists? I have q1 and q2 and I want to merge them. I have tried to use the comand merge, but not work. Any solutions? Thanks! > q1 $Input1 7.84615384615385 0.5 $Input2 8.92307692307692 -3.2 $Input3 4.53846153846154 -5 > q2 $Input1 7.

Re: [R] Labeling different kinds of dots

2008-01-25 Thread John Fox
Dear Svempa, See ?legend. In this case, you could have discovered the legend function via apropos("legend") or help.search("legend"). I hope this helps, John John Fox, Professor Department of Sociology McMaster University Hamilton, Ontario, Canada L8S 4M4 905-5

Re: [R] Poisson Maximum Likelihood Estimation

2008-01-25 Thread Gavin Simpson
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO On Fri, 2008-01-25 at 14:21 +, David Winsemius wrote: > "Paul Sweeting" <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > The most straightforward approach would be to use glm() with > family="poisson", a.k.a Poisson regression. Don't ask

Re: [R] function code

2008-01-25 Thread Duncan Murdoch
On 1/25/2008 9:46 AM, Luis Ridao Cruz wrote: > R-help, > > Sorry for this question (I guess it has been addressed before but > I could not find it in the archives) > but how can I see a function code > when the following comes up: > >> svymean > function (x, design, na.rm = FALSE, ...) > { >

Re: [R] function code

2008-01-25 Thread Gavin Simpson
hits=-2.6 tests�YES_00 X-USF-Spam-Flag: NO On Fri, 2008-01-25 at 14:46 +, Luis Ridao Cruz wrote: > R-help, > > Sorry for this question (I guess it has been addressed before but > I could not find it in the archives) > but how can I see a function code > when the following comes up: > > > sv

Re: [R] function code

2008-01-25 Thread Romain Francois
Hi, This IS the code of the function. It is a generic function, the actual method used depends on the class of the object. You will find methods for this function by doing: R> methods("svymean") [1] svymean.survey.design* svymean.survey.design2* svymean.svyrep.design* [4] svymean.twophase*

Re: [R] Help - linear regression

2008-01-25 Thread S Ellison
a*b is not an interaction term. An interaction term looks like a:b. y~age*race means y~age+race+age:race. For TB> model1<-lm(lavi~age+sex+race+diabetes+hypertension, data=tb1) TB> model2<-lm(lavi~age+sex+age*race+diabetes+hypertension, data=tb1) both main effects are present in model 2 (below) a

[R] layout: how to check whether a pending plot is going to happen within layout or not?

2008-01-25 Thread Johannes Graumann
How can I test whether a plot I'm about to call will be within a "layout" or not? I need to fix some par options based on that ... Thanks, Joh __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting g

Re: [R] Random Forest

2008-01-25 Thread Liaw, Andy
From: Bill Vorias > Is there an Interaction function in the Random Forest > algorithm in the current version of R? No (at least not in the randomForest package). Prof. Breiman regarded that feature as "experimental", and said he wouldn't mind not having it in the R version. I don't know if Pr

[R] function code

2008-01-25 Thread Luis Ridao Cruz
R-help, Sorry for this question (I guess it has been addressed before but I could not find it in the archives) but how can I see a function code when the following comes up: > svymean function (x, design, na.rm = FALSE, ...) { .svycheck(design) UseMethod("svymean", design) } Thanks i

[R] Need Advice with C# Program to Create and Display Cusum Chart

2008-01-25 Thread ngottlieb
I need to write a C# program to create and display Cusum chart from any of the packages, spc, qcc or strucchange. Issues: 1-The data resides in a MS SQL Database. The C# program will handle obtaining the data for the requisite types of samples. Assistance needed on: 1-How can I call the cusum

Re: [R] Poisson Maximum Likelihood Estimation

2008-01-25 Thread David Winsemius
"Paul Sweeting" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi > > I am trying to carry out some maximum likelihood estimation and I'm > not making much headway, and I'm hoping that someone will be able to > point me in the right direction. > > I am modelling mortality statistics. O

Re: [R] 'Best penalty' in design package

2008-01-25 Thread Frank E Harrell Jr
Tirthadeep wrote: > > Dear Users, > > In case of ridge logistic regression, i want to calculate the optimum > penalty using aic and bic criteria. Here is the sample code: > > fit <- lrm(RES ~CAT01+NUM01+NUM02+CAT02+CAT03+CAT04+NUM03+CAT05+CAT06+NUM04+ > CAT07+CAT08+NUM05+NUM06, dat

[R] Have look at free classifieds site

2008-01-25 Thread c.govindaraj
Visit this site for free classifieds http://www.a2z-4-sale.com, have nice week end __ 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] plotting gridlines

2008-01-25 Thread Gavin Simpson
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO See ?grid though read the Note section of that page, which says that more fine tuning can be achieved through the use of abline directly. Also, note that abline is vectorized so you don't need the loop. Here is you example, adjusted to avoid the large

Re: [R] plotting gridlines

2008-01-25 Thread Chuck Cleland
On 1/25/2008 8:14 AM, John Lande wrote: > dear all, > > I have a very simple question but I could not figure out. > > I need to make plots with grid in the background. > > something like I old retrive like this > > a=runif(100)*10 > b=runif(100)*10 > plot(a,b, pch=20, xlim=c(0, round(max(a))),

[R] plotting gridlines

2008-01-25 Thread John Lande
dear all, I have a very simple question but I could not figure out. I need to make plots with grid in the background. something like I old retrive like this a=runif(100)*10 b=runif(100)*10 plot(a,b, pch=20, xlim=c(0, round(max(a))), ylim=c(0, round(max(b vs=seq(0, max(a), 0.5) for(i in 1:le

[R] Using R on XGRID

2008-01-25 Thread rajeshwari iyer
Hi, I have been trying to run R programs on the XGrid but without any sucess...it would be great help if somebody could give me an indication/steps as to how to get this running...am using a Mac OSX Leopard and the xgrid is on a tiger cluster... thanks very much in advance! [[alternative

[R] Odp: Grouping

2008-01-25 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 24.01.2008 23:21:05: > I need to group some subjects according to two > variables (var1, var2) > > I have a data frame that looks something like this: > > Subject var1 var2 > 1 400150 > 2 320100 > 3 580600 > 4

[R] Poisson Maximum Likelihood Estimation

2008-01-25 Thread Paul Sweeting
Hi I am trying to carry out some maximum likelihood estimation and I'm not making much headway, and I'm hoping that someone will be able to point me in the right direction. I am modelling mortality statistics. One way to do this is to model the mortality rate (or, more accurately, log of the mor

[R] For-Loop faster than vectorized code?

2008-01-25 Thread Ralph79
Dear R-Users, I am working on an Hierarchical Bayes model and tried to replace the inner for-loop (which loops over a list with n.observations elements) with truely vectorized code (where I calculated everything based on ONE dataset over all respondents). However, when comparing the performance

[R] Logit Regressions, Clustering etc

2008-01-25 Thread Paul Sweeting
Hi I am carrying out some logit regressions and want to (a) make sure I'm taking the right approach and (b) work out how to carry out some additional analysis. So, to carry out a logit regression where the dependent variable is a factor db, I use something like: res1_l <- glm(formula = db ~ y1 +

[R] Labeling different kinds of dots

2008-01-25 Thread Svempa
I have one graph with two linear plots, one where the points are marked with a triangle and the others marked with a dot. How do I label them in a legend for example, comparable to what you automatically get in Excel (sorry for the comparison people), so you know which type of point corresponds to

Re: [R] How does do.call() work??

2008-01-25 Thread Duncan Murdoch
Sergey Goriatchev wrote: > Dear members of R forum, > > Say I have a list: > > L <- list(1:3, 1:3, 1:3) > > that I want to turn into a matrix. > > I wonder why if I do: > > do.call(cbind, L) > > I get the matrix I want, but if I do > > cbind(L) > > I get something different from what I want. Why is

Re: [R] Help - linear regression

2008-01-25 Thread David Young
Thanjavur, I'm new to R, so it is possible I'm interpreting you syntax incorrectly, but it looks like in the second equation you are only including the interaction of age*race, the main effect of age, but not the main effect of race which is what came out significant in your first model. In effec

Re: [R] How does do.call() work??

2008-01-25 Thread Gustaf Rydevik
On Jan 25, 2008 11:27 AM, Sergey Goriatchev <[EMAIL PROTECTED]> wrote: > Dear members of R forum, > > Say I have a list: > > L <- list(1:3, 1:3, 1:3) > > that I want to turn into a matrix. > > I wonder why if I do: > > do.call(cbind, L) > > I get the matrix I want, but if I do > > cbind(L) > > I ge

Re: [R] increasing speed for permutations of glm

2008-01-25 Thread jim holtman
Use Rprof on your code to see where time is being spend and then focus on those areas for improvement. On Jan 25, 2008 2:21 AM, Juliet Hannah <[EMAIL PROTECTED]> wrote: > Dear R Programmers, > I am trying to run a Poisson regression on all pairs of variables in a data > set and > obtain the permut

Re: [R] Linux, UNIX, XP32, Vista X64 or ...? [SEC=UNCLASSIFIED]

2008-01-25 Thread Patrick Burns
Perhaps there are other opinions, but from my point of view R is spectacularly similar in Linux and Windows (and will be virtually identical in Linux and Unix). As long as you are doing "R" things, you should be in home territory. I regularly transfer R objects between 64-bit Linux and Windows, a

[R] How does do.call() work??

2008-01-25 Thread Sergey Goriatchev
Dear members of R forum, Say I have a list: L <- list(1:3, 1:3, 1:3) that I want to turn into a matrix. I wonder why if I do: do.call(cbind, L) I get the matrix I want, but if I do cbind(L) I get something different from what I want. Why is that? How does do.call() actually work? I've read

Re: [R] lapply without return values?

2008-01-25 Thread Peter Dalgaard
Berwin A Turlach wrote: > Of course, you could always do something like: > > >> ilapply <- function(...) invisible(lapply(...)) >> > > ## perhaps better: > ## ilapply <- function(X, FUN, ...) invisible(lapply(X, FUN, ...)) > > >> ilapply(p, function(ps) {x11(); plot(ps)}) >> lapply

Re: [R] boxplot axis labelling

2008-01-25 Thread Jim Lemon
[EMAIL PROTECTED] wrote: > >Hi, > > >i'm very new to R, so sorry for what i'm sure is a very basic question. I'm >producing a boxplot with the data below: > >df3<-data.frame( > > x=c(10,11,115,12,13,14,16,17,18,21,22,23,24,26,27,28,29,3,30,32,33,34,35,4,4 >1,45,5,50,52,5

Re: [R] problems with .svg

2008-01-25 Thread Mag. Ferri Leberl
Asche auf mein Haupt. Yours, Mag. Ferri Leberl Am Donnerstag, den 24.01.2008, 17:12 + schrieb Prof Brian Ripley: > I suspect you have ignored > >'If you are using an old version of R and think it does not work >properly, upgrade to the latest version and try that, before posting.' >

[R] Passing string arguments to C code, call to .C, R memory allocation for character vectors

2008-01-25 Thread Harold PETITHOMME
Hello R-ill world! My problem : I obtain a segmentation fault when passing a character argument to a C function, compiled in a shared object and loaded by dyn.load. 1. As manuals (and overall "Writing R extensions ") don't seem to mention it or I failed to find the info, could someone explain

Re: [R] lapply without return values?

2008-01-25 Thread Rainer M Krug
Berwin A Turlach wrote: > G'day Rainer, > > On Fri, 25 Jan 2008 10:34:32 +0200 > Rainer M Krug <[EMAIL PROTECTED]> wrote: > > [...] > >> > p <- data.frame(runif(10), runif(10), runif(10)) >> > lapply( p, function(ps) {x11(); plot(ps)} ) >> >> which results in three graphs and a printout: > [.

Re: [R] two histograms in the same graph

2008-01-25 Thread Jim Lemon
Juan Pablo Fededa wrote: > Dear Contributors: > > I have two vectors x and z, and I want to display the histograms of both > vectors in the same graph, x in red bars, z in blue bars. > If you have any clue on how to do that, I will be very glad to hear it!! > Thanks in advance again, > Hi Jua

Re: [R] lapply without return values?

2008-01-25 Thread Berwin A Turlach
G'day Rainer, On Fri, 25 Jan 2008 10:34:32 +0200 Rainer M Krug <[EMAIL PROTECTED]> wrote: [...] > > p <- data.frame(runif(10), runif(10), runif(10)) > > lapply( p, function(ps) {x11(); plot(ps)} ) > > which results in three graphs and a printout: [...] > How can I avoid this printout without

[R] OR computation

2008-01-25 Thread sigalit mangut-leiba
Hello, I want to compute OR from a simulation, I simulate outcome-y and binary covariate, and I repeat it 1000 times. I built a logistic model, and want to compute OR for every sample At the end I'm looking for the mean(OR) of the 1000 repetitions. Can I use cc (from epicalc)? example: if yall is t

[R] Lightning and Surge Protection

2008-01-25 Thread CWD-Emarketing
Lightning Protection Technology Micro Power engineering (Pvt.) Ltd is one of the world's leading companies in Lightning Protection using the most up to date technology available. We offer a complete range of Lightning Protection equipment to produce safe and reliable Lightning and Surge Protect

Re: [R] package 'foreign'

2008-01-25 Thread Peter Dalgaard
Tobias Teichert wrote: > Hi Everybody, > > I need to install the R-package 'foreign'. However, when I try the > standard install.packages('foreign') I get the following error > message: > > " package 'foreign' is not available in: install.packages("foreign") " > > The funny thing is, that I am usi

[R] lapply without return values?

2008-01-25 Thread Rainer M Krug
Hi I am looking for a function which is executing some code repeatedly, exactly like lapply() and sappl() are doing, but do not return anything as I am not interested in the return values. An example would be: > p <- data.frame(runif(10), runif(10), runif(10)) > lapply( p, function(ps) {x11(

[R] 'Best penalty' in design package

2008-01-25 Thread Tirthadeep
Dear Users, In case of ridge logistic regression, i want to calculate the optimum penalty using aic and bic criteria. Here is the sample code: fit <- lrm(RES ~CAT01+NUM01+NUM02+CAT02+CAT03+CAT04+NUM03+CAT05+CAT06+NUM04+ CAT07+CAT08+NUM05+NUM06, data = train.data, x = TRUE, y = TR

[R] 'Best penalty' in design package

2008-01-25 Thread Tirthadeep
Dear Users, In case of ridge logistic regression, i want to calculate the optimum penalty using aic and bic criteria. Here is the sample code: fit <- lrm(RES ~CAT01+NUM01+NUM02+CAT02+CAT03+CAT04+NUM03+CAT05+CAT06+NUM04+ CAT07+CAT08+NUM05+NUM06, data = train.data, x = TRUE, y = T