Re: [R] Attach a time series object

2005-11-19 Thread Nestor Arguea
That did it. Thanks. Nestor On Saturday 19 November 2005 10:34 pm, you wrote: > Try this: > >attach(as.list(my.time.series)) > > On 11/19/05, Nestor Arguea <[EMAIL PROTECTED]> wrote: > > Is there an attach-like command for time series objects? > > Thanks in advance, _

Re: [R] Can someone Help in nls() package

2005-11-19 Thread Spencer Graves
When I tried to run your example, I got the following: Error in func(times[1], y, parms) : object "Cum2" not found While I couldn't replicate your error, I can tell you that the reason "print(coef(fit))" gave the error it did was because "nls" refuses to return anything when

Re: [R] repeated values, nlme, correlation structures

2005-11-19 Thread Patrick Giraudoux
Spencer Graves a écrit : > You are concerned that, "using the mean of each age category as > variable leads to a loss of information regarding the variance on the > weight at each age and nestbox." What information do you think you lose? The variance around the mean weight of each age c

Re: [R] Attach a time series object

2005-11-19 Thread Gabor Grothendieck
Try this: attach(as.list(my.time.series)) On 11/19/05, Nestor Arguea <[EMAIL PROTECTED]> wrote: > Is there an attach-like command for time series objects? > Thanks in advance, __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/lis

[R] Attach a time series object

2005-11-19 Thread Nestor Arguea
Is there an attach-like command for time series objects? Thanks in advance, Nestor __ 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

[R] directional correlograms?

2005-11-19 Thread Jeff D. Hamann
I've run out of ideas for a simple solution, so... Does anyone know of a package that can compute directional correlograms? The spatial package seems to work for all directions, Usage: correlogram(krig, nint, plotit = TRUE, ...) but I don't know how to modify the spatial package (if requi

Re: [R] help with apply, please

2005-11-19 Thread Adrian DUSA
On Saturday 19 November 2005 22:09, Gabor Grothendieck wrote: > Getting back to your original question of using apply, solving the LP > gives us the number of components in any minimal solution and > exhaustive search of all solutions with that many components can > be done using combinations from

[R] Crop white border for PDF output

2005-11-19 Thread Claus Atzenbeck
Hi, I produce a series of diagrams with R in order to include them in my documents (LaTeX). However, there is a white border around the diagrams. For some that do not have anything written at the very bottom, the white border is relatively large. The rather big space between figure and caption at

Re: [R] help with apply, please

2005-11-19 Thread Gabor Grothendieck
On 11/19/05, Adrian DUSA <[EMAIL PROTECTED]> wrote: > On Saturday 19 November 2005 19:17, Patrick Burns wrote: > > [snip...] One cheat would be to do the LP problem > > multiple times with the rows of your matrix randomly > > permuted. Assuming you keep track of the real rows, > > you could th

Re: [R] help with apply, please

2005-11-19 Thread Adrian DUSA
On Saturday 19 November 2005 20:51, Ted Harding wrote: > [..snip...] > There is bound to be a good algorithm out there somewhere > for finding a "minimal coveriung set" but I don't know it! > Best wishes to all, > Ted. I found this presentation very explicit: http://www.cs.ualberta.ca/~amaral/cour

Re: [R] help with apply, please

2005-11-19 Thread Adrian DUSA
Dear Ted, On Saturday 19 November 2005 20:51, Ted Harding wrote: > [...snip...] > There is bound to be a good algorithm out there somewhere > for finding a "minimal coveriung set" but I don't know it! > > Comments? > > Best wishes to all, > Ted. My case is probably a subset of your general algori

Re: [R] Specify Z matrix with lmer function

2005-11-19 Thread Spencer Graves
There is probably a way to do what you want, but I don't know how. You are to be commended for providing a self-contained example citing an interesting article from the Journal of Statistical Software and including the modification necessary to make the S-Plus "lme" call work in R.

Re: [R] help with apply, please

2005-11-19 Thread Ted Harding
On 19-Nov-05 Adrian Dusa wrote: > On Saturday 19 November 2005 17:24, Gabor Grothendieck wrote: >> [...snip...] >> Although the above is not wrong I should have removed the >> rbind which is no longer needed and simplifying it further, >> as it seems that lp will do the rep for you itself for >> ce

Re: [R] help with apply, please

2005-11-19 Thread Adrian DUSA
On Saturday 19 November 2005 19:17, Patrick Burns wrote: > [snip...] One cheat would be to do the LP problem > multiple times with the rows of your matrix randomly > permuted. Assuming you keep track of the real rows, > you could then get a sense of how many solutions there > might be. Thanks

Re: [R] help with apply, please

2005-11-19 Thread Patrick Burns
I suspect that the answer is that finding all solutions will be hard. L1 regression is a special case of LP. I learned how to move around the corners of the solution space, and could easily find all of the solutions in the special case of a two-way table. However, sometimes there were a lot of so

Re: [R] Adding points to wireframe

2005-11-19 Thread Dieter Menne
Pierre-Luc Brunelle polymtl.ca> writes: > > I am using function wireframe from package lattice to draw a 3D surface. > I would like to add a few points on the surface. I read in a post from > Deepayan Sarkar that "To do this in a wireframe plot you would probably > use the panel function pane

[R] Fwd: Autoloading R Commander

2005-11-19 Thread Stephen P. Molnar, Ph.D.
-- Forwarded Message -- Subject: [R] Autoloading R Commander Date: Saturday November 19, 2005 10:35 am From: "Stephen P. Molnar, Ph.D." <[EMAIL PROTECTED]> To: R How do I go about autoloading R Commander when I start R? Thanks in advance. -- Stephen P. Molnar, Ph.D.

[R] predicted values from cv.glm

2005-11-19 Thread Jeffrey Stratford
Hi. Is there a way to get the values predicted from (leave-one-out) cv.glm? It seems like a useful diagnostic to plot observed vs. predicted values. Thanks, Jeff Jeffrey A. Stratford, Ph.D. Postdoctoral Associate 331 Funchess Hall Department of Biologi

Re: [R] Autoloading R Commander

2005-11-19 Thread John Fox
Dear Stephen, As a brief addendum, this information (and other information) is in the Rcmdr installation notes, at http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/installation-notes.html. Sorry I forgot that when I posted my original answer. John John Fox Depa

Re: [R] Autoloading R Commander

2005-11-19 Thread John Fox
Dear Stephen, I believe that this question has been asked before, though possibly privately rather than on the r-help list. A solution (kindly provided, as I recall, by Brian Ripley) is to put the following in an appropriate start-up file. For example, if you *always* want to start the Rcmdr when

Re: [R] Autoloading R Commander

2005-11-19 Thread Prof Brian Ripley
On Sat, 19 Nov 2005, Stephen P. Molnar, Ph.D. wrote: > How do I go about autoloading R Commander when I start R? Read ?Startup. My first idea would be to make use of a ~/.Rprofile file. `Autoloading' is a technical term in R (see ?autoload), which I presume is not what you meant. My guess is

[R] new article on R at oreillynet.com

2005-11-19 Thread Kevin Farnham
An article I wrote that provides a basic introduction to R has been published on Oreillynet.com. The article is titled "Analyzing Statistics with GNU/R". Here is the link: http://www.onlamp.com/pub/a/onlamp/2005/11/17/r_for_statistics.html Please feel free to post comments or interesting basic R

Re: [R] Autoloading R Commander

2005-11-19 Thread Uwe Ligges
Stephen P. Molnar, Ph.D. wrote: > How do I go about autoloading R Commander when I start R? See ?Startup Uwe Ligges > Thanks in advance. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the postin

Re: [R] help with apply, please

2005-11-19 Thread Adrian Dusa
On Saturday 19 November 2005 17:24, Gabor Grothendieck wrote: > [...snip...] > Although the above is not wrong I should have removed the rbind > which is no longer needed and simplifying it further, as it seems > that lp will do the rep for you itself for certain arguments, gives: > > lp("min", rep

[R] Autoloading R Commander

2005-11-19 Thread Stephen P. Molnar, Ph.D.
How do I go about autoloading R Commander when I start R? Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set Foundation for ChemistryStochastic and multivariant http://www.geocities.com/FoundationForC

Re: [R] help with apply, please

2005-11-19 Thread Gabor Grothendieck
On 11/19/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > On 11/19/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > > Try minizing 1'x subject to 1 >= x >= 0 and m'x >= 1 where m is your mtrx > > and ' means transpose. It seems to give an integer solution, 1 0 1, > > with linear programming

Re: [R] help with apply, please

2005-11-19 Thread Gabor Grothendieck
On 11/19/05, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Try minizing 1'x subject to 1 >= x >= 0 and m'x >= 1 where m is your mtrx > and ' means transpose. It seems to give an integer solution, 1 0 1, > with linear programming even in the absence of explicit integer > constraints: > > library(

Re: [R] help with apply, please

2005-11-19 Thread Gabor Grothendieck
Try minizing 1'x subject to 1 >= x >= 0 and m'x >= 1 where m is your mtrx and ' means transpose. It seems to give an integer solution, 1 0 1, with linear programming even in the absence of explicit integer constraints: library(lpSolve) lp("min", rep(1,3), rbind(t(mtrx), diag(3)), rep(c(">=", "<="

Re: [R] help with apply, please

2005-11-19 Thread Duncan Murdoch
On 11/19/2005 8:00 AM, Adrian DUSA wrote: > Dear list, > > I have a problem with a toy example: > mtrx <- matrix(c(1,1,0,1,1,1,0,1,1,0,0,1), nrow=3) > rownames(ma) <- letters[1:3] > > I would like to determine which is the minimum combination of rows that > "covers" all columns with at least a 1

Re: [R] SWeave - can I see output in the source?

2005-11-19 Thread Duncan Murdoch
On 11/19/2005 6:13 AM, [EMAIL PROTECTED] wrote: >>On Fri, 18 Nov 2005 13:49:36 -0500, >>Duncan Murdoch (DM) wrote: > > > > I'm working on a Latex document with lots of R code in it, so naturally > > enough it would be a good idea to use SWeave. But then I don't get to > > see the

[R] cointegration rank

2005-11-19 Thread Carlo Fezzi
Dear R - helpers, I am using the urca package to estimate cointegration relations, and I would be really grateful if somebody could help me with this questions: After estimating the unrestriced VAR with "ca.jo" I would like to impose the rank restriction (for example rank = 1) and then obtain the

[R] help with apply, please

2005-11-19 Thread Adrian DUSA
Dear list, I have a problem with a toy example: mtrx <- matrix(c(1,1,0,1,1,1,0,1,1,0,0,1), nrow=3) rownames(ma) <- letters[1:3] I would like to determine which is the minimum combination of rows that "covers" all columns with at least a 1. None of the rows covers all columns; all three rows clea

Re: [R] SWeave - can I see output in the source?

2005-11-19 Thread Friedrich . Leisch
> On Fri, 18 Nov 2005 13:49:36 -0500, > Duncan Murdoch (DM) wrote: > I'm working on a Latex document with lots of R code in it, so naturally > enough it would be a good idea to use SWeave. But then I don't get to > see the output as I'm editing. > Or do I? Is there a tool to p

Re: [R] question about R graphics-example plot attached

2005-11-19 Thread Mathieu Basille
Does 'rug' help you ? example(rug) ?rug Cheers Mathieu. jia ding a écrit : >-- Forwarded message -- >From: jia ding <[EMAIL PROTECTED]> >Date: Nov 2, 2005 4:03 PM >Subject: question about R graphics-example plot attached >To: [EMAIL PROTECTED] > >Suppose I have the data