Re: [R] Newbie question about saving results

2007-01-13 Thread Duncan Murdoch
On 1/14/2007 12:17 AM, David Kaplan wrote: > Hi all, > > When I run a procedure and the results are printed to the console, is > there a way to just save the results? When I save to file, it also > saves the syntax of the procedure. Thanks in advance, You can redirect results to a file, using

[R] Newbie question about saving results

2007-01-13 Thread David Kaplan
Hi all, When I run a procedure and the results are printed to the console, is there a way to just save the results? When I save to file, it also saves the syntax of the procedure. Thanks in advance, David -- === David Kapl

Re: [R] Questions about paste and assign

2007-01-13 Thread Gabor Grothendieck
Try this: > a <- list(a = 1, b = 2, c = 3) > assign("a", replace(get("a"), 3, 2.34)) > a $a [1] 1 $b [1] 2 $c [1] 2.34 On 1/13/07, Tong Wang <[EMAIL PROTECTED]> wrote: > Hi, >I would like to assign a value to a member b of the list a in position > 3, by calling: > >

[R] Controlling size of boxplot when it is added in a plot

2007-01-13 Thread Charilaos Skiadas
Greetings, I am trying to add a boxplot to the bottom of a histogram, right between the histogram bars and the x axis. Here is the code I am using at the moment (the par line is probably not relevant for our discussion): hs <- hist(x, breaks = 20, plot = F) par(mar = c(3,3,2,1)) his

[R] Questions about paste and assign

2007-01-13 Thread Tong Wang
Hi, I would like to assign a value to a member b of the list a in position 3, by calling: assign( target, 2.34, 3) My question is what the "target" should be. I tried target <- paste("a", $, "b") and something else, but haven't got the

Re: [R] comments in Sweave

2007-01-13 Thread Duncan Murdoch
On 1/13/2007 4:13 PM, Jeff D. Hamann wrote: > Sa-weeet! Does next spring mean in a couple of months? Probably sometime in this coming April. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] comments in Sweave

2007-01-13 Thread Jeff D. Hamann
Sa-weeet! Does next spring mean in a couple of months? -- Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 > On 1/13/2007 3:16 PM, Jeff D. Hamann wrote: >> Has anyone been able to include R comments in Sweave docs so that the >> comments aren't deleted? > > This has been fixed i

Re: [R] comments in Sweave

2007-01-13 Thread Duncan Murdoch
On 1/13/2007 3:16 PM, Jeff D. Hamann wrote: > Has anyone been able to include R comments in Sweave docs so that the > comments aren't deleted? This has been fixed in R-devel (to become 2.5.0 next spring). You need to specify the "keep.source=TRUE" Sweave option, either in the chunk, or in the f

[R] graph results of logistic regression

2007-01-13 Thread mcarr052
I would like to graphically represent the results from a matched-pairs logistic regression. I am looking to represent each variable seperately in a graph, displaying the probability of selection for each. My study is looking at habitat selection in turtles so I am comparing habitat variables to tur

[R] comments in Sweave

2007-01-13 Thread Jeff D. Hamann
Has anyone been able to include R comments in Sweave docs so that the comments aren't deleted? -- Forest Informatics, Inc. PO Box 1421 Corvallis, Oregon 97339-1421 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

Re: [R] Definition of t-value

2007-01-13 Thread Achim Zeileis
On Sat, 13 Jan 2007 [EMAIL PROTECTED] wrote: > My problem is that I do not know how to compute the standard error Sb of some > regression coefficient, when I have done nothing more than to use the lm > command in this manner: > > Out = lm(A~ data$B + data$C + data$D) better make that Out <- l

Re: [R] Definition of t-value

2007-01-13 Thread Peter Heinig
Thank you for the suggestion to use summary.lm. It does help. Best Regards, Peter -- __ 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 pr

Re: [R] Magnitude of trend in time series

2007-01-13 Thread hadley wickham
> I am analyzing some climate time series data using the Mann Kendall package > and was wondering if there was a way to calculate the trend using Sen's > nonparametric estimator slope in R? I think you can do it with the mblm package. But I vaguely remember that the results didn't look reasonable

Re: [R] Definition of t-value

2007-01-13 Thread Dimitrios Rizopoulos
try this Out <- lm(A ~ data$B + data$C + data$D) summary(Out) moreover, by typing 'summary.lm' in your R console you may see how the t-values are computed; check also ?summary.lm. Another way, though less efficient, to obtain the standard errors is the following summ.Out <- summary(Out) X

[R] Definition of t-value

2007-01-13 Thread algorithms
Hello, I'd like to ask for the exact definition of the t-value, which R uses in its summaries of a linear model for judging the importance of an independent variable in explaining the dependent variable. I searched the documentation, some groups, and the web for quite a long time, but the best

Re: [R] Magnitude of trend in time series

2007-01-13 Thread mike waters
Rand Wilcox has produced a set of functions for S-Plus and (IIRC) R, which includes Theil-Sen regression. The following url gives a pdf to the workshop that they were designed to accompany, along with instructions on how to source and use them. http://psychology.usc.edu/rwilcox/workshop.pdf Th

[R] package 'rimage' install error on FreeBSD

2007-01-13 Thread Rainer Hurling
After not reaching the package maintainer ([EMAIL PROTECTED]) I hope someone on R-help@ can help. I tried to install rimage_0.5-7.tar.gz under FreeBSD-7.0 CURRENT as root with the following command: R CMD INSTALL rimage_0.5-7.tar.gz It stops with the following errors in the configure scrip

[R] Magnitude of trend in time series

2007-01-13 Thread Barry Baker
Hello, I am analyzing some climate time series data using the Mann Kendall package and was wondering if there was a way to calculate the trend using Sen's nonparametric estimator slope in R? Thank you in advance, Barry _ Barry Baker, Ph.D. Global Climate Change Initiative

[R] Aware of MaxDiff in R?

2007-01-13 Thread Mike Epstein
Hi All - I would like to use R to implement MaxDiff (Best/Worst) scaling, but since I can't find anything on it in the R archives or packages, I think I'll have to start from scratch. I am hoping a list member is aware of a canned version of this method in R. Failing that, code from anoth

[R] Appropriate test for correlation of two discretely distributed variables

2007-01-13 Thread René Cyranek
Good evening! I am looking for the right test to analyze my data. I have got more than 3,500 observations which have two dimensions: Age (in integers and ranging from 14 to 70) and another parameter (also integers and ranging from 0 to 10). What I want to test is, whether there is some correlatio

Re: [R] R2WinBugs and Compare DIC versus BIC or AIC

2007-01-13 Thread Uwe Ligges
Dae-Jin Lee wrote: > Dear All > > 1) > > I'm fitting spatial CAR models > > using R2Winbugs and although everything seems to go reasonably well (or I > think so) > > the next message appears from WINBUGS 1.4 window: > > gen.inits() > Command #Bugs: gen.inits cannot be executed (is greyed out

Re: [R] R on UNIX Sun-Solaris 10.0 vs. S-Plus

2007-01-13 Thread Uwe Ligges
Louisell, Paul wrote: > This is a general question to people who've installed R on a UNIX > sparc-sun-solaris platform: > > Have you had any issues related to maintaining R on this platform, e.g., > installations that didn't work, instances of R crashing and possibly > requiring a new installation

Re: [R] What command does the "cin >> " in R ?

2007-01-13 Thread Uwe Ligges
talepanda wrote: > try: > > readLines(n=1)->str 1. Please do always use "<-" and spaces around it as in temp <- readLines(n=1) rather than "->", it is *that* confusing!!! 2. It is always wise to avoid duplication of object names (and str() already is a function), even if it would work in

Re: [R] R editor vs. Tinn-R

2007-01-13 Thread Uwe Ligges
Why do people post so much details about their *guesses* on R-help rather than looking into the sources or quickly asking the corresponding developers? Anyway, before people start to mention and guess about RWinEdt: RWinEdt uses the clipboard to transfer code from WinEdt to R, hence any Excel d