Re: [R] odfWeave error

2008-10-23 Thread Dieter Menne
Rob James aetiologic.ca> writes: > Post-processing the contents > Error in .Call("RS_XML_Parse", file, handlers, endElementHandlers, > as.logical(addContext), : > attempt to apply non-function > This might be similar to: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/135891.html and coul

Re: [R] How to (simply) add table-values to a mosaicplot ?

2008-10-23 Thread Dieter Menne
Tal Galili gmail.com> writes: > I am looking for a way to add table values (from a "table" object) into a > mosaic plot of that table (which is produced by the "mosaicplot" command on > the table object). (nice self-running example removed) I suggest that you switch to package vcd and function

Re: [R] map points from scatterplot3d onto 2d fitted plane

2008-10-23 Thread Dieter Menne
Jacqueline Hall googlemail.com> writes: > I have a 3D scatter plot that I have generated from scatterplot3d (which > looks great- thanks!) and I can see that the points in my graph fall in a > > Is there a package/function that can help me do this that I have missed? or > does anyone have any su

Re: [R] utilize the R to write something on txt file

2008-10-23 Thread Dieter Menne
Abelian gmail.com> writes: > i have to utilize the R to report the simulation result by txt file. > However, i have to write some introduction and explanination before > the result. > by the way,, there are variables follow with "Input directory name:" > "Output directory name:", "The number of

Re: [R] code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?

2008-10-23 Thread Yihui Xie
Well, I know the problem now. The Rweb at math.montana.edu is rather old (and slow!), I think. Try the one at stat.umn.edu: http://spider.stat.umn.edu/Rweb/ and you'll get the right result. Regards, Yihui -- Yihui Xie <[EMAIL PROTECTED]> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +8

Re: [R] R random number generation

2008-10-23 Thread markleeds
below i think semi does what you want but it's never going to repeat a value because it's sampling without replacement ? in that sense, it's not as general as what you asked for. if you need the repeating thing, then i'm not sure how to do that. hopefully someone else does. lapply(1:30, functio

Re: [R] Mail server problem?

2008-10-23 Thread markleeds
Hi Rolf: yup, i'm getting copies over and over of a few different posts and yes one is yours. they have been coming over and over since about 5pm and it's now about midnight ( US Eastern time ) On Thu, Oct 23, 2008 at 8:01 PM, Rolf Turner wrote: I keep getting repeated copies of ``R-hel

[R] utilize the R to write something on txt file

2008-10-23 Thread Abelian
i have to utilize the R to report the simulation result by txt file. However, i have to write some introduction and explanination before the result. For example, In the first part. the introduction is like below === === Data description === ===

Re: [R] R random number generation

2008-10-23 Thread hiphop
hi thanks for the reply actually am supposed to generate random numbers in oncreasing size. so when i say 1,2 i should get something like 1 or 221 or 1112 ...i should get both the values 1 and 2 in a random order but it should stop when both the values occur atleast once in the sequence.so af

Re: [R] Mail server problem?

2008-10-23 Thread TomW
Rolf Turner wrote: I keep getting repeated copies of ``R-help post acknowledgements'' in respect of a couple of postings that I made to the list this morning (my time). I only posted each posting *once*. I hope that others are not getting repeated copies of my postings I mean I *know* my

Re: [R] Mail server problem?

2008-10-23 Thread David Winsemius
I am also seeing the same multiplicity. And it is not just threads to which I have replied. I assumed that someone "in the know" would have seen this excess duplicative traffic. -- David Winsemius On Oct 23, 2008, at 8:01 PM, Rolf Turner wrote: I keep getting repeated copies of ``R-help p

Re: [R] finding unique and max value from a data.frame

2008-10-23 Thread jim holtman
do 'str(myx)' and you will probably see that 'x2' is a factor even though it appears to be numeric when you print it. To convert it to numeric, you can do: myx$x2 <- as.numeric(as.character(myx$x2)) On Thu, Oct 23, 2008 at 8:52 PM, Srinivas Iyyer <[EMAIL PROTECTED]> wrote: > Hi Jim, > thank you

Re: [R] finding unique and max value from a data.frame

2008-10-23 Thread Srinivas Iyyer
Hi Jim, thank you for tip. However, why it works for you and the same line fails in my R. > myx <-x > myx x1 x2 1 a 4 2 b 3 3 c 2 4 a 1 5 c 2 6 f 3 7 g 4 8 f 5 > aggregate(x=myx$x2,by =list(myx$x1),max) Error in Summary.factor(c(4L, 1L), na.rm = FALSE) : max not meaningful

Re: [R] negative values for barchart

2008-10-23 Thread Plantky
Thanks a lot! It works! Deepayan Sarkar wrote: > On 10/23/08, Plantky <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > My data has some positive and negative values, and I want to plot a > > barchart. The problem is that the y-axis zero is somewhere in the > > middle of the plot, and the graph s

Re: [R] finding unique and max value from a data.frame

2008-10-23 Thread jim holtman
?aggregate x1 x2 1 a 4 2 b 3 3 c 2 4 a 1 5 c 2 6 f 3 7 g 4 8 f 5 > aggregate(x$x2, list(x$x1), max) Group.1 x 1 a 4 2 b 3 3 c 2 4 f 5 5 g 4 > On Thu, Oct 23, 2008 at 8:30 PM, Srinivas Iyyer <[EMAIL PROTECTED]> wrote: > Hi group, > > How can I ide

[R] finding unique and max value from a data.frame

2008-10-23 Thread Srinivas Iyyer
Hi group, How can I identify an element with max value among duplicated elements all in a data frame Example: > x1 x1 x2 1 a 4 2 b 3 3 c 2 4 a 1 5 c 2 6 f 3 7 g 4 8 f 5 I want to be able to get a data frame with all unique(x1) with max value x1 x2 1 a 4 2 b 3 3 c 2

[R] Mail server problem?

2008-10-23 Thread Rolf Turner
I keep getting repeated copies of ``R-help post acknowledgements'' in respect of a couple of postings that I made to the list this morning (my time). I only posted each posting *once*. I hope that others are not getting repeated copies of my postings I mean I *know* my postings are so wo

[R] A line for SD, colouring simplevioplots, limiting Y axis in barplots, axis in vioplot

2008-10-23 Thread Fernando Marmolejo Ramos
Dear R people I have 4 questions about graphics. QUESTION 1 & 2 --- I have the following data, which is also set as a dataframe. Then I plot it using a violin plot… 1. How can a draw a line representing 2 SD for each group? 2. How can I colour the simple violin plots in different co

Re: [R] [R-SIG-Finance] forecasting earnings, sales and gross margin of a company...

2008-10-23 Thread Nuno Prista
Stoffer and Shumway have a nice hands-on book on time series with R. Their website is also very instructive. You may also wanna take a look at the tseries, FinTS and forecasting packages. Nuno Prista Michael wrote: Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] [

[R] map points from scatterplot3d onto 2d fitted plane

2008-10-23 Thread Jacqueline Hall
Dear R helpers, I have a 3D scatter plot that I have generated from scatterplot3d (which looks great- thanks!) and I can see that the points in my graph fall in a plane. Following the example 5 from 3D scatter plot (below) I have fitted a regression plane. Now what I would like to do is a rotation

Re: [R] VEC Operator in R

2008-10-23 Thread Henrique Dallazuanna
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] VEC Operator in R

2008-10-23 Thread Henrique Dallazuanna
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] VEC Operator in R

2008-10-23 Thread Gabor Grothendieck
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] VEC Operator in R

2008-10-23 Thread Gabor Grothendieck
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] A question about positive definite matrix

2008-10-23 Thread Rolf Turner
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] A question about positive definite matrix Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or

Re: [R] optim bug/help?

2008-10-23 Thread Ravi Varadhan
Hi Kevin, There is no substitute to knowing your problem as well as you possibly can (I know this can be challenging in complicated, real problems). If you plot the contours of the function, you will see that they are banana shaped around the solution, i.e. the objective function is not very sens

Re: [R] R random number generation

2008-10-23 Thread Ted Harding
On 23-Oct-08 19:58:12, hiphop wrote: > > i have to generate random numbers from length 2 to 30 and > length two should have the numbers 1,2 and length 3 should > have the numbers 1,2,3 so on and so forth till size 30. > i should get an sequence like 221 or 112 till both > the values appear

Re: [R] xy.coords in text

2008-10-23 Thread Greg Snow
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] xy.coords in text Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] [R-SIG-Finance] forecasting earnings, sales and gross margin of a company...

2008-10-23 Thread Michael
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] [R-SIG-Finance] forecasting earnings, sales and gross margin of a company... Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is bein

Re: [R] Calculating confidence limits for the difference betweenmeans

2008-10-23 Thread Kingsford Jones
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] Calculating confidence limits for the difference between means Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at

Re: [R] Calculating confidence limits for the difference betweenmeans

2008-10-23 Thread Kingsford Jones
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] Calculating confidence limits for the difference between means Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at

[R] How to (simply) add table-values to a mosaicplot ?

2008-10-23 Thread Tal Galili
Hello. I am looking for a way to add table values (from a "table" object) into a mosaic plot of that table (which is produced by the "mosaicplot" command on the table object). The only reference I was successful in finding on the web was in a script here: http://tables2graphs.com/doku.php?id=03_d

Re: [R] [R-SIG-Finance] forecasting earnings, sales and gross margin of a company...

2008-10-23 Thread bogaso.christofer
You can fit a VAR model and then, test for Granger Causality -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Sent: 24 October 2008 01:10 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [R] [R-SIG-Finance] forecasting ear

Re: [R] VEC Operator in R

2008-10-23 Thread Patrick Burns
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] VEC Operator in R

2008-10-23 Thread Patrick Burns
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] xy.coords in text

2008-10-23 Thread Greg Snow
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] xy.coords in text Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] VEC Operator in R

2008-10-23 Thread Kingsford Jones
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] Substitute problem

2008-10-23 Thread Chris82
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] Substitute problem Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific un

Re: [R] Help finding the proper function

2008-10-23 Thread Rolf Turner
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] Help finding the proper function Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] odfWeave error

2008-10-23 Thread Duncan Temple Lang
Duncan Murdoch wrote: On 10/23/2008 3:32 PM, Rob James wrote: odfWeave is throwing up a cryptic error, after successfully processing a file with a large number of figures (~30) and many \Sexpr{} calls. The error is (at least to me) cryptic. I am not sure where to look to correct this proble

Re: [R] VEC Operator in R

2008-10-23 Thread Kingsford Jones
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific und

Re: [R] A question about positive definite matrix

2008-10-23 Thread Rolf Turner
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] A question about positive definite matrix Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or

Re: [R] Help finding the proper function

2008-10-23 Thread Rolf Turner
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] Help finding the proper function Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] naming list entries dynamically

2008-10-23 Thread Gábor Csárdi
On Thu, Oct 23, 2008 at 10:35 PM, Gábor Csárdi <[EMAIL PROTECTED]> wrote: > On Thu, Oct 23, 2008 at 10:29 PM, <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I'm new to R and I'd like to dynamically assign names to the entries of a >> list. >> The situation is: I load several ascii-files from a folder.

Re: [R] I have an xyplot, I want to keep the format, but only show x or y

2008-10-23 Thread Deepayan Sarkar
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] I have an xyplot, I want to keep the format, but only show x or y Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at

Re: [R] naming list entries dynamically

2008-10-23 Thread Gábor Csárdi
On Thu, Oct 23, 2008 at 10:29 PM, <[EMAIL PROTECTED]> wrote: > Hello, > > I'm new to R and I'd like to dynamically assign names to the entries of a > list. > The situation is: I load several ascii-files from a folder. The data shall > be stored within the list structure, where the file names are a

[R] odfWeave error

2008-10-23 Thread Rob James
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: [R] odfWeave error Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with their specific understand

[R] naming list entries dynamically

2008-10-23 Thread tlange
Hello, I'm new to R and I'd like to dynamically assign names to the entries of a list. The situation is: I load several ascii-files from a folder. The data shall be stored within the list structure, where the file names are assigned to the list entries. > flist $file1.txt [1] 1.0 1.2 1.4 1.6

Re: [R] optim bug/help?

2008-10-23 Thread Patrick Burns
[EMAIL PROTECTED] wrote: I was just trying to get a feel for the general strengths and weaknesses of the algoritmns. This is obviously a "demo" function and probably not representative of the "real" optimization problems that I will face. My concern was that if there is inaccuracy when I know t

Re: [R] optim bug/help?

2008-10-23 Thread rkevinburton
I was just trying to get a feel for the general strengths and weaknesses of the algoritmns. This is obviously a "demo" function and probably not representative of the "real" optimization problems that I will face. My concern was that if there is inaccuracy when I know the answer it might be wors

[R] R random number generation

2008-10-23 Thread hiphop
i have to generate random numbers from length 2 to 30 and length two should have the numbers 1,2 and length 3 should have the numbers 1,2,3 so on and so forth till size 30.i should get an sequence like 221 or 112 till both the values appear and for 3 it should be 123 or 3331112.i shoul

Re: [R] odfWeave error

2008-10-23 Thread Duncan Murdoch
On 10/23/2008 3:32 PM, Rob James wrote: odfWeave is throwing up a cryptic error, after successfully processing a file with a large number of figures (~30) and many \Sexpr{} calls. The error is (at least to me) cryptic. I am not sure where to look to correct this problem. Here's the error:

Re: [R] [R-SIG-Finance] forecasting earnings, sales and gross margin of a company...

2008-10-23 Thread Michael
Dear folks, Here is one example of two time series: http://img523.imageshack.us/my.php?image=twoseriesfm3.jpg The two series are all year-over-year percentage growth (in percentage). For Amazon Net Sales Growth data, I have data from Q1 2001 to Q2 2008 (quarterly), whereas for US Real Average H

[R] odfWeave error

2008-10-23 Thread Rob James
odfWeave is throwing up a cryptic error, after successfully processing a file with a large number of figures (~30) and many \Sexpr{} calls. The error is (at least to me) cryptic. I am not sure where to look to correct this problem. Here's the error: Post-processing the contents Error in .Ca

Re: [R] I have an xyplot, I want to keep the format, but only show x or y

2008-10-23 Thread Deepayan Sarkar
On Thu, Oct 23, 2008 at 11:20 AM, Porter,Phillip C <[EMAIL PROTECTED]> wrote: > Good Morning, > I am using xyplot to show two variables for a large number of subjects. > > Currently I am using xyplot(y~x|as.factor(ID), layout=c(7,9)) to give me a > little plot of the x and y factors for each ID. >

Re: [R] A question about positive definite matrix

2008-10-23 Thread Rolf Turner
On 20/10/2008, at 5:26 PM, rlearner309 wrote: I know, this is a forum about R. But I am so desperate of this problem (BTW, anyone knows any good Statistics/Math forum to post question like this?): A and B are both n x n positive definite matrix. Denote A > B, if A - B is positive defini

[R] lars

2008-10-23 Thread Derow, Catherine Kari
I am trying to use the lars package in R to carry out lasso analysis. However, I am having some problems. Please could you help me with the following questions: 1) Exactly what format do x and y need to be in for cv.lars(x, y) and lars (x, y)? And what information do x and y need to contain exac

Re: [R] Help finding the proper function

2008-10-23 Thread Rolf Turner
On 24/10/2008, at 1:37 AM, Tom.O wrote: Ok, I'll try to be clearer. I'll start from the beginning. I have a set of samples that I'm going to use to model a proxy for a common property. This property is that the samples are either in a "quiet" or "chaotic" state. Both the quiet and chaot

[R] I have an xyplot, I want to keep the format, but only show x or y

2008-10-23 Thread Porter,Phillip C
Good Morning, I am using xyplot to show two variables for a large number of subjects. Currently I am using xyplot(y~x|as.factor(ID), layout=c(7,9)) to give me a little plot of the x and y factors for each ID. The purpose of the plot is to let the PI quickly look through the data for irregul

Re: [R] Mirror/Package problems in R 2.8.0

2008-10-23 Thread APSalverda
I experienced the same problem after upgrading from 2.7.2 to 2.8.0. I checked "/Library/Frameworks/R.framework/Versions" and noticed that the installer did not copy the packages that I had installed under Version 2.7. I reinstalled those packages, initially experiencing the same problem you des

Re: [R] Calculating confidence limits for the difference between means

2008-10-23 Thread Kingsford Jones
On Wed, Oct 22, 2008 at 11:09 AM, Dennis Fisher <[EMAIL PROTECTED]> wrote: > Colleagues, > > I am working on a problem at the edge of my knowledge of statistics. > > Basically, I have values for two groups - I am trying to calculate the > 90% confidence limits for the difference between means. I c

Re: [R] VEC Operator in R

2008-10-23 Thread Kingsford Jones
RSiteSearch('vec vech', restrict = 'fun') turns up several packages with vec and vech functions. E.g., matrixcalc, fUtilities, ks, ... hth, Kingsford Jones On Thu, Oct 23, 2008 at 11:47 AM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VE

Re: [R] xy.coords in text

2008-10-23 Thread Greg Snow
The xy.coords function is a powerful function used by a lot of the plotting functions because it allows the user to enter x and y coordinates as 2 vectors, a 2 column matrix, or a list with x and y components (and possibly others), but it does not do 'topleft' and the like. The legend function

Re: [R] VEC Operator in R

2008-10-23 Thread Patrick Burns
For 'VEC' you may not need to do anything -- in a lot of circumstances it will just work. For 'VECH' you can write a function using the 'lower.tri' function. But it seems to me that the assumption behind your question is that a simple function that someone else has written is going to be better

Re: [R] VEC Operator in R

2008-10-23 Thread Gabor Grothendieck
Try: RsiteSearch("vech") On Thu, Oct 23, 2008 at 1:47 PM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VEC" and > "VECH" operator on Matrix? Yes of course, I can write a > user-defined-function for that or else, I can put dim(mat) <- NULL.

Re: [R] VEC Operator in R

2008-10-23 Thread Sarah Goslee
It might help if you told us what you expected VEC and VECH to do. On Thu, Oct 23, 2008 at 1:47 PM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VEC" and > "VECH" operator on Matrix? Yes of course, I can write a > user-defined-function for t

Re: [R] VEC Operator in R

2008-10-23 Thread Henrique Dallazuanna
I think you can use as.vector On Thu, Oct 23, 2008 at 3:47 PM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VEC" and > "VECH" operator on Matrix? Yes of course, I can write a > user-defined-function for that or else, I can put dim(mat) <- N

Re: [R] Substitute problem

2008-10-23 Thread Chris82
Thanks! Works fine! jholtman wrote: > > Had the test wrong in the last one' try this: > >> x > X value row col ID n > 1 1 11.105009 5511625 3463000 1 -619.1125 > 2 2 10.324148 5499625 3465000 01. > 3 3 8.744591 5503625 3475000 01. > 4 4 9.523473 549

Re: [R] VEC Operator in R

2008-10-23 Thread Gábor Csárdi
And what is this "operator" supposed to do? Maybe you just want as.vector, but it is hard to say from this. Gabor On Thu, Oct 23, 2008 at 7:47 PM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VEC" and > "VECH" operator on Matrix? Yes of cou

Re: [R] negative values for barchart

2008-10-23 Thread Deepayan Sarkar
On 10/23/08, Plantky <[EMAIL PROTECTED]> wrote: > Hi all, > > My data has some positive and negative values, and I want to plot a > barchart. The problem is that the y-axis zero is somewhere in the > middle of the plot, and the graph starts with a negative value. How > can I make the negative v

Re: [R] Fuctions help!

2008-10-23 Thread stephen sefick
what are you trying to do? Break the problem down make it reproducible and then maybe we can help. stephen On Thu, Oct 23, 2008 at 9:10 AM, Alex99 <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I have a question about functions. I have two functions: > > Sampling=function(fname,Total,nSample,nP

Re: [R] Interpretation of t.test results

2008-10-23 Thread Greg Snow
Omar, A detailed interpretation of the results are the subject of more than 1 chapter in most introductory statistics books and the topic of several classes/hours of lecture in a standard introductory statistics class. Your question suggests that you either skipped your intro stats class, or d

Re: [R] code works in R desktop but not iin RWeb - I got it working

2008-10-23 Thread Gabor Grothendieck
If the RWeb server you are referring to is the one at montana then its running a version of R that is 5 years old. At that time the underscore was a synonym for <- in R but that was discontinued some time since then. With a version of R that old there could be quite a few other differences as wel

[R] VEC Operator in R

2008-10-23 Thread megh
Can anyone please tell whether there is any R function to act as "VEC" and "VECH" operator on Matrix? Yes of course, I can write a user-defined-function for that or else, I can put dim(mat) <- NULL. However I am looking for some R function. Your help will be highly appreciated. Regards, -- View

Re: [R] code works in R desktop but not iin RWeb - I got it working

2008-10-23 Thread Natalie O'Toole
Hi, I got this working. i had to get rid of an underscore in one of my variable names to work on RWeb. Thanks for your help though!! Natalie __ I think you have to be either honest or careful, since the code you submitted to Rweb is different with your former code! Why the co

Re: [R] Fuctions help!

2008-10-23 Thread Sarah Goslee
On Thu, Oct 23, 2008 at 9:10 AM, Alex99 <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I have a question about functions. I have two functions: > > Sampling=function(fname,Total,nSample,nPatient){..return(list(Gmean,Gsd))} > > Power=function(alfa,m1,m2,s1,s2,n1,n2){return(powe)} > > I want

Re: [R] Interpretation of t.test results

2008-10-23 Thread Timur Shtatland
You may find these links helpful for the introduction to the t-test and the interpretation of the t-test results: http://www.tufts.edu/~gdallal/LHSP.HTM See: Student's t Test for Independent Samples http://www.itl.nist.gov/div898/handbook/eda/section3/eda353.htm Timur -- Timur Shtatland, Ph.D. S

[R] RODBC and RDCOM

2008-10-23 Thread guox
I got a table on SQL Server, which has columns EquationId (int) and Formula (varch(900)). I need to select Formula with certain EquationId, for example, Select Formula from OGA_DEV.dbo.Equation where EquationId = 3 I tried to work within RGui using RODBC: > library(RODBC) > conn = odbcConnect("S

Re: [R] Fw: It 's correct to do contrasts for a GLM?

2008-10-23 Thread Ken Knoblauch
Ken Knoblauch inserm.fr> writes: > > Susana Zuloaga hotmail.com> writes: > > > > > Hi all > > > > I am one recent user of R and have a few doubts > > I did a binomial GLM with 3 - factor and now I have to test contrasts to > > identify that treatments are different. I know that the contras

Re: [R] Fw: It 's correct to do contrasts for a GLM?

2008-10-23 Thread Ken Knoblauch
Susana Zuloaga hotmail.com> writes: > > Hi all > > I am one recent user of R and have a few doubts > I did a binomial GLM with 3 - factor and now I have to test contrasts to > identify that treatments are different. I know that the contrasts are used > in ANOVA, it is not incorrect to use th

[R] Fw: It 's correct to do contrasts for a GLM?

2008-10-23 Thread Susana Zuloaga
Hi all I am one recent user of R and have a few doubts I did a binomial GLM with 3 - factor and now I have to test contrasts to identify that treatments are different. I know that the contrasts are used in ANOVA, it is not incorrect to use them in GLM? there is a way to do contrasts between

Re: [R] What editors can I get R in Mac OS X to talk to?

2008-10-23 Thread stephen sefick
the version of aqua macs that I have installed- you just go to file and open an R buffer, push the R logo in the corner and you are off and running. EES is already installed. Hope this helps. On Thu, Oct 23, 2008 at 12:21 PM, Charles C. Berry <[EMAIL PROTECTED]> wrote: > On Thu, 23 Oct 2008, Mik

Re: [R] Fuctions help!

2008-10-23 Thread Charles C. Berry
See ?with also ?do.call Use of the latter will need to have the names of the returned value match those of formals( Power ) HTH, Chuck On Thu, 23 Oct 2008, Alex99 wrote: Hi everyone, I have a question about functions. I have two functions: Sampling=function(fname,T

Re: [R] Automating citations in Sweave

2008-10-23 Thread Charles C. Berry
On Thu, 23 Oct 2008, ONKELINX, Thierry wrote: Dear all, Is there an elegant way to add citations of packages when using Sweave? Ideally I'd like a function which creates a Bibtex-file with the packagenames as keys. The idea is to use \cite{packagename} or \cite{R} in LaTeX. I know you can get

Re: [R] save an object of class "im"

2008-10-23 Thread Sarah Goslee
How about an example of what you did? It's difficult to provide suggestions without a workable example of the commands you used. Sarah On Thu, Oct 23, 2008 at 12:26 PM, ppaarrkk <[EMAIL PROTECTED]> wrote: > > I have created various "im" objects, but can't seem to save and load them. I > can save

[R] write.matrix.csr(e1071) bug

2008-10-23 Thread Jeszenszky Peter
Hello, The write.matrix.csr() function of the e1071 package contains a bug. Try the following: library(e1071) m <- 1 - diag(10) sm <- as.matrix.csr(m) write.matrix.csr(sm) The resulting file (out.dat) contains only the two lines below: 2:1 3:1 4:1 5:1 6:1 7:1 8:

[R] ?outdated windows printing problem in the GUI

2008-10-23 Thread S Ellison
Running the scatterplot/histogram example in ?layout and subsequently printing from the file menu in Windows XP using R 2.7.1 does not print the whole figure, although saving as a metafile does save the whole figure. Before I upgrade solely to check, can anyone confirm from knowledge a) whether i

[R] save an object of class "im"

2008-10-23 Thread ppaarrkk
I have created various "im" objects, but can't seem to save and load them. I can save them, but as small files of less than 1Kb. Therefore, when they are re-loaded, they cannot be plotted as images. Any ideas please. Thankyou. Simon Parker Imperial College -- View this message in context: htt

Re: [R] What editors can I get R in Mac OS X to talk to?

2008-10-23 Thread Charles C. Berry
On Thu, 23 Oct 2008, Mike Williamson wrote: All, Apologies if this was already answered... I couldn't find an answer that specifically addressed Mac OS instead of either windows or linux. I use "aquamacs emacs" as my text editor. It is essentially Xemacs with a GUI that looks closer to sta

[R] error when using logistic.display within a loop

2008-10-23 Thread Tom Cohen
Dear list, I tried to apply the logistic regression to different response variables from a dataframe and would like to store the results using the function logistic.display from the "epicalc" package in a list, but got an error message "Error in eval(expr, envir, enclos) : y values must

[R] Fuctions help!

2008-10-23 Thread Alex99
Hi everyone, I have a question about functions. I have two functions: Sampling=function(fname,Total,nSample,nPatient){..return(list(Gmean,Gsd))} Power=function(alfa,m1,m2,s1,s2,n1,n2){return(powe)} I want to use "Gmean" and "Gsd" which are the returned values from "Sampling" function,

Re: [R] MCMC for sampling from ordinal logistic regression

2008-10-23 Thread reezwan you
Your example uses ordinal probit model. I am actually looking for ordinal logit model. reez --- On Thu, 10/23/08, Dieter Menne <[EMAIL PROTECTED]> wrote: > From: Dieter Menne <[EMAIL PROTECTED]> > Subject: Re: [R] MCMC for sampling from ordinal logistic regression > To: [EMAIL PROTECTED] > Date

[R] negative values for barchart

2008-10-23 Thread Plantky
Hi all, My data has some positive and negative values, and I want to plot a barchart. The problem is that the y-axis zero is somewhere in the middle of the plot, and the graph starts with a negative value. How can I make the negative values appear as bars that are going below the y-axis zero? So t

Re: [R] MCMC for sampling from ordinal logistic regression

2008-10-23 Thread Dieter Menne
reezwan you yahoo.com> writes: > Is there a R-function that can generate samples from the posterior distribution of an ordered logistic regression model (just like MCMCoprobit from MCMCpack in R). >> I am confused. What's missing in the output of MCMCpack? library(MCMCpack) x1 <- rnorm(100

Re: [R] Help with lattice

2008-10-23 Thread Dieter Menne
Nelson, Gary (FWE state.ma.us> writes: > xyplot(Z~year|labels,group=as.factor(river),xlab="Year",ylab="Age-based > Z", > data=data1,scales="free",ylim=c(0,4),xlim=c(1960,2010), > par.settings = list(superpose.symbol = list(pch = > c(1,2,3,4,5,16,10,6,87,83),cex=0.9, >col=

[R] FMOLS

2008-10-23 Thread Economics Guy
Is anyone aware of an R package that implements Pedroni's FMOLS (Fully Modified Ordinary Least Squares) package, for panel data with non-stationary and co-integration? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEA

[R] Help with lattice

2008-10-23 Thread Nelson, Gary (FWE)
With R version 2.8.0, I am using the following function to plot loess lines in each panel of the xyplot: xyplot(Z~year|labels,group=as.factor(river),xlab="Year",ylab="Age-based Z", data=data1,scales="free",ylim=c(0,4),xlim=c(1960,2010), par.settings = list(superpose.symbol = list(p

Re: [R] PCA

2008-10-23 Thread stephen sefick
reproducible code - are you assigning the results to an object On Thu, Oct 23, 2008 at 10:34 AM, Gianni Messeri <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to perform a Principal Component Analysis on meteorological data > with 10 predictors. > I use the library pcaMethods to obtain a lot of in

[R] PCA

2008-10-23 Thread Gianni Messeri
Hi, I'm trying to perform a Principal Component Analysis on meteorological data with 10 predictors. I use the library pcaMethods to obtain a lot of information (loadings, scores, mean, standard deviation, etc). How can I obtain the scores (new PC variables) for new values of weather predictors

[R] Avoiding Biplot Labels Overllaping

2008-10-23 Thread Rodrigo Aluizio
Sorry, just correcting the script!!! Hi everybody, I'm trying, without success, to avoid some variables labels to overlap on a capscale (vegan package) object graph. I was able to move the labels with the coding below, but it moves the entire vector... CAPobj<-CAPpotiFT for(i in c(2:8))CAPobj$

  1   2   >