Re: [R] R for Windows 32-bit mode versus 64-bit mode

2013-02-06 Thread Prof Brian Ripley
On 06/02/2013 22:47, Roy Mendelssohn - NOAA Federal wrote: Hi All: We are developing (actually updating) a piece of code that runs in R. Due to some limitations of some the libraries we use, at the present time we would be limited to the 32-bit version of R on Windows. Does anyone have a feel (

[R] coplot question

2013-02-06 Thread derek@nemac
In R I have 3 variables x,y and z that contain: | x y z [1,] 1 12 122 [2,] 1 13 113 [3,] 1 11 111 [4,] 3 13 123 [5,] 4 14 134 [6,] 5 15 155| I am creating a coplot with the following syntax: |given.depth<- co.intervals(z, number=3, overlap=.1) coplot(x~y|z,pch=19,col

Re: [R] merge 2 data.frames

2013-02-06 Thread Alice Xiong
x<-matrix(c(1,11,11,2,3,4),2,3) y<-matrix(x(7,8,9,10,11,12),2,3) if you want to merge them by row, then use: rbind(x,y) if you want to merge them by column, then use cbind(x,y) hope this can help you out* Alice Xiong On Wed, Feb 6, 2013 at 8:55 AM, Mat wrote: > Hello together, > > i have

[R] spatstat kstest

2013-02-06 Thread Hiroshi Saito
Dear sir, Which mailing list is appropriate to ask for kstest in spatstat? Regards, Hiroshi Saito * Hiroshi Saito: E-MAIL: saito.hiro...@lab.ntt.co.jp http://www9.plala.or.jp/hslab/ PHONE: +81 422 59 4300 FAX: +81 422 59 6364 __

Re: [R] The interpretation of lm(y~x)?

2013-02-06 Thread Alice Xiong
to start with, you should now what kinds of independent variables in your data=Rail. it looks like you depend variable is "travel". is "Rail" the only IV in your model? it seems has been classifed to L, Q, C. from the output, it seems the final model should be: E(travel)=66.5+54*Rail.L-4.7 Rail.Q-

Re: [R] cumulative sum by group and under some criteria

2013-02-06 Thread arun
Hi, Anyway, just using some random combinations:  dnew<- expand.grid(4:10,5:10,6:10,3:7,4:5,6:8) names(dnew)<-c("m","n","x1","y1","x","y") resF<- cbind(dnew,d2[rep(1:nrow(d2),nrow(dnew)),])  row.names(resF)<- 1:nrow(resF)  head(resF) #  m n x1 y1 x y m1 n1 cterm1_P1L cterm1_P0H #1 4 5  6  3 4 6  

[R] Question about NLS model

2013-02-06 Thread Liu, Liang
After applying the NLS for a model like y=exp(a*x), and I get a result showing the summary as: Estimate Std. Error t value Pr(>|t|) 2.6720 1.4758 1.811 0.3212 My question is what this t-statistics tests? And what's the meaning of Pr? New to R. Thanks. [[alternative HTML version d

Re: [R] Modifying Package Data

2013-02-06 Thread Bert Gunter
Blast! -- dumb typo: On Wed, Feb 6, 2013 at 8:14 PM, Bert Gunter wrote: > Just wanted to point out... > > On Wed, Feb 6, 2013 at 7:20 PM, Rich Shepard wrote: >> On Wed, 6 Feb 2013, David Winsemius wrote: >> >>> Wouldn't this just be: >>> save(itis.table, file="/usr/lib/R/library/bio.infer/data/i

Re: [R] Hard Stop?

2013-02-06 Thread Henrik Bengtsson
See abort() in the R.oo package, with some discussion here https://stat.ethz.ch/pipermail/r-devel/2012-September/064838.html /Henrik On Wed, Feb 6, 2013 at 7:05 PM, Jeff Newmiller wrote: > stop() does not have momentum... it is designed to play nice. > > Perhaps you want ?options(error=). > Alte

Re: [R] Modifying Package Data

2013-02-06 Thread Rich Shepard
On Wed, 6 Feb 2013, David Winsemius wrote: Wouldn't this just be: save(itis.table, file="/usr/lib/R/library/bio.infer/data/itis.ttable.rda") David, Almost certainly. I did not find the save function in the indices of my R library or the R data doc. Now I know it exists I'll read about it th

Re: [R] Modifying Package Data

2013-02-06 Thread Rich Shepard
On Wed, 6 Feb 2013, MacQueen, Don wrote: My sense is that even if this were possible (which I doubt), Don, It is possible. ... it would be outside the scope of what would be considered appropriate in R (assuming I understand the question). After all, it's someone else's package, theirs to

[R] Merging data in arrays

2013-02-06 Thread Ray Cheung
Dear All, Here is a hypothetical sample (sorry for the clumsy code): A1 <- matrix(1:5, nrow=5, ncol=1) A2 <- matrix(6:10, nrow=5, ncol=1) A3 <- matrix(11:15, nrow=5, ncol=1) A4 <- matrix(16:20, nrow=5, ncol=1) A5 <- matrix(21:25, nrow=5, ncol=1) A6 <- matrix(26:30, nrow=5, ncol=1) B1 <- matrix(c

Re: [R] Hard Stop?

2013-02-06 Thread Jeff Newmiller
stop() does not have momentum... it is designed to play nice. Perhaps you want ?options(error=). Alternately, you want to trigger a core dump? --- Jeff NewmillerThe . . Go Live... DCN

[R] Hard Stop?

2013-02-06 Thread ivo welch
is it possible to throw a stop() that is so hard that it will escape even tryCatch? /iaw Ivo Welch (ivo.we...@gmail.com) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] how to draw confidence interval lines of a fitted curve of polynominal regression

2013-02-06 Thread Elaine Kuo
Hello, I drew a plot of weight and height of people and fitted it with a polynominal regression x^2. (using curve()) Now I would like to draw the confidence interval line for the fitted curve. Please kindly advise the code for the purpose. Thank you. Elaine [[alternative HTML version de

Re: [R] Adding Latex to text

2013-02-06 Thread David Winsemius
On Feb 6, 2013, at 4:53 PM, Rolf Turner wrote: > > Perhaps you want to look at > >?plotmath > >cheers, > >Rolf Turner Definitely ... he _will_ want to look at ?plotmath, but there is a lot on that page and teh parts that explain the parsing of expressions were not at all c

Re: [R] low pass filter analysis in R

2013-02-06 Thread Pascal Oettli
Hello, If you know what a lowpass filter is, you should be able to use "filter" from "stats" package. And you can have a look at: ?triang HTH, Pascal Le 07/02/2013 09:50, Janesh Devkota a écrit : Hello R users, I am trying to use R to do the low pass filter analysis for the tidal data. I

Re: [R] Adding Latex to text

2013-02-06 Thread Rolf Turner
Perhaps you want to look at ?plotmath cheers, Rolf Turner On 02/07/2013 11:41 AM, David Arnold wrote: Hi, I'd like to add "alpha" in latex code to my image. Any suggestions? library(UsingR) BagA = c(rep(10,6),rep(20,5), rep(30,4),rep(40,3),rep(50,2),60,70) BagA BagB = c(10,

[R] low pass filter analysis in R

2013-02-06 Thread Janesh Devkota
Hello R users, I am trying to use R to do the low pass filter analysis for the tidal data. I am a novice in R and so far been doing only simple stuffs on R. I found a package called signal but couldn't find the proper tutorial for the low pass filter. Could anyone point me to the proper tutorial

Re: [R] rJava works with 32-bit but not 64

2013-02-06 Thread Robert Baer
For what it is worth Spencer, I can start rJava in both 32-bit R and 64-bit R for Windows 7. [And could even before Simon fixed the error message). And yes, I have both 32-bit Java and 64-bit Java 1.7.0_13 installed. They should be separate entries under your control panel. Rob -- Robert

Re: [R] Predictions from the Segmented Package

2013-02-06 Thread Rolf Turner
Since no-one else seems to have responded to your question, I'll chip in with my two bob's worth: (1) You can probably get what you might want to get from predict() by looking at X$fitted.values --- where X is the object returned by segmented(). (2) But predict() is probably the wrong way to

Re: [R] R for Windows 32-bit mode versus 64-bit mode

2013-02-06 Thread Clint Bowman
Most Windows computers in my neighborhood have been upgraded to 64 bit. Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360) 407-6815 PO Box 47600

Re: [R] error installing manipulate package.

2013-02-06 Thread Michael Weylandt
On Feb 6, 2013, at 9:23 PM, David Winsemius wrote: > > On Feb 6, 2013, at 9:01 AM, Nicole Ford wrote: > >> hello, all. >> >> I am having his problem. i looked in archives and could not find a solution. > > Did you look in the rhelp archives or in the package archives? > >> >> --- Please

[R] R for Windows 32-bit mode versus 64-bit mode

2013-02-06 Thread Roy Mendelssohn - NOAA Federal
Hi All: We are developing (actually updating) a piece of code that runs in R. Due to some limitations of some the libraries we use, at the present time we would be limited to the 32-bit version of R on Windows. Does anyone have a feel (or even real knowledge) if most people these days run R

[R] Adding Latex to text

2013-02-06 Thread David Arnold
Hi, I'd like to add "alpha" in latex code to my image. Any suggestions? library(UsingR) BagA = c(rep(10,6),rep(20,5), rep(30,4),rep(40,3),rep(50,2),60,70) BagA BagB = c(10, 20,rep(30,2),rep(40,3),rep(50,4),rep(60,5),rep(70,6)) BagB par(mfrow = c(2, 1)) DOTplot(BagA) abline(v=60,lwd=2,lty=2,col="

Re: [R] error installing manipulate package.

2013-02-06 Thread David Winsemius
On Feb 6, 2013, at 9:01 AM, Nicole Ford wrote: > hello, all. > > I am having his problem. i looked in archives and could not find a solution. Did you look in the rhelp archives or in the package archives? > > --- Please select a CRAN mirror for use in this session --- > Warning message: > pa

Re: [R] Modifying Package Data

2013-02-06 Thread Suzen, Mehmet
You can use system.file to fine the package root, then data file path relative to this. For example system.file(package = "stats") # The root of package 'stats' See ?system.file On 6 February 2013 22:02, David Winsemius wrote: > > On Feb 4, 2013, at 11:37 AM, Rich Shepard wrote: > >> The bio.in

Re: [R] Modifying Package Data

2013-02-06 Thread David Winsemius
On Feb 4, 2013, at 11:37 AM, Rich Shepard wrote: > The bio.infer package contains a data frame > /usr/lib/R/library/bio.infer/data/itis.ttable.rda that needs to be modified. > After loading the bio.infer package and attaching the data frame with the > data() function, I wrote the data frame to a

Re: [R] (no subject)

2013-02-06 Thread David Winsemius
On Feb 6, 2013, at 3:16 AM, Laura de Mergelina wrote: > Where can I mark the option to not receive emails from users? I didn't mean to hit reply, but rather to copy the link that is at the bottom of every posting. ( So I guess my "empty reply actually could be construed as being relevant.) >

Re: [R] (no subject)

2013-02-06 Thread David Winsemius
On Feb 6, 2013, at 3:16 AM, Laura de Mergelina wrote: > Where can I mark the option to not receive emails from users? > > -- > Laura de Mergelina > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do re

Re: [R] Modifying Package Data

2013-02-06 Thread MacQueen, Don
My sense is that even if this were possible (which I doubt), it would be outside the scope of what would be considered appropriate in R (assuming I understand the question). After all, it's someone else's package, theirs to control and maintain, etc. What if it's an installation of R on a multi-use

[R] how to extract test for collinearity and constantcy used in lda

2013-02-06 Thread David Romano
Hi everyone, I'm trying to vectorize an application of lda to each 2D slice of a 3D array, but am running into trouble: It seems there are quite a few 2D slices that trigger either the "variables are collinear" warning, or worse, trigger a "variable appears to be constant within groups" error and

Re: [R] merge 2 data.frames

2013-02-06 Thread Eik Vettorazzi
Hi Mat, just have a look at ?rbind cheers. Am 06.02.2013 15:55, schrieb Mat: > Hello together, > > i have probably a easy question, but how can i sum 2 data.frames among each > other. > I have 2 data.frames which look like this one: > > Cu.No. place level > 1 123

Re: [R] Omitting repeated occurrence in a string

2013-02-06 Thread David Winsemius
On Feb 6, 2013, at 11:24 AM, David Winsemius wrote: > > On Feb 6, 2013, at 8:46 AM, Christofer Bogaso wrote: > >> Hello again, >> >> I was looking for some way on How to delete repeated appearance in a >> String. Let say I have following string: >> >> Text <- "ahsgdvasgAbcabcsdahj" >> >> Her

Re: [R] Omitting repeated occurrence in a string

2013-02-06 Thread Eik Vettorazzi
Hi Christopher, what is the rule to omit "ah" which is also repeated in Text? The following might be a start: Text <- "ahsgdvasgAbcabcsdahj" #finds first repetion of substrings of length 2 or more, here "ah" gsub("(?i)([a-z]{2,})(.*)\\1","\\1\\2",Text,perl=T) #finds all repetions of substrings of

Re: [R] Omitting repeated occurrence in a string

2013-02-06 Thread David Winsemius
On Feb 6, 2013, at 8:46 AM, Christofer Bogaso wrote: > Hello again, > > I was looking for some way on How to delete repeated appearance in a > String. Let say I have following string: > > Text <- "ahsgdvasgAbcabcsdahj" > > Here you see "Abc" appears twice. But I want to keep only 1 > occurrenc

Re: [R] The interpretation of lm(y~x)?

2013-02-06 Thread Bert Gunter
Have you read An Introduction to R or other R tutorial? DO you know about ordered factors and contrasts in linear models? -- Bert On Wed, Feb 6, 2013 at 5:00 AM, jing tang wrote: > Hi, > I am reading the book "Mixed Effects Models in S and S-Plus" and come > across an example with the Rail data.

Re: [R] cumulative sum by group and under some criteria

2013-02-06 Thread arun
Hi, maxN<- 9  res3new<-  aggregate(.~m1+n1,data=res2[,c(1:2,12:13)],max)  d2<-res3new[res3new[,3]<0.01 & res3new[,4]<0.01,]  d2 #  m1 n1 cterm1_P1L cterm1_P0H #2  3  2    0.00032     0.0025  (d2$m1+2) #[1] 5  maxN-(d2$n1+2) #[1] 5 dnew<-expand.grid((m1+2):(maxN-(n1+2)),(n1+2):(maxN-m),0:m1,0:

[R] error installing manipulate package.

2013-02-06 Thread Nicole Ford
hello, all. I am having his problem. i looked in archives and could not find a solution. --- Please select a CRAN mirror for use in this session --- Warning message: package ‘manipulate’ is not available (for R version 2.15.2) thank you in advance. _

[R] adehabitatHR - Creating Biased Random Bridge UD with a boundary

2013-02-06 Thread Robert Wager
Dear List, It's the first time that I try to request your support. I intent do use the BRB (Biased Random Bridge) function with a boundary. I believe I have made sure to fulfill all the rules for boundaries (segment length, angle of junction) When calculating the UD I get the following Error:

[R] Non linear programming: choose R that minimizes corr(y,x^R)

2013-02-06 Thread Ravi Varadhan
Hi John, Do you want to minimize correlation or |correlation|? Here is a simple code, with example, that shows how to optimize the magnitude (that is corr^2) of correlation between y and x^p, where p is a positive real number. You can modify it to suit your needs. corxy.opt <- function(x, y,

Re: [R] how to "multiply" list of matrices by list of vectors

2013-02-06 Thread arun
Hi, I got an error message with: vlist <- apply(mm, list) Error in match.fun(FUN) : argument "FUN" is missing, with no default #assuming that vlist <- apply(mm,2,list) mapply("%*%",mlist,vlist[1:2],SIMPLIFY=FALSE) #[[1]]  #    [,1] #[1,]   19 #[2,]   22 #[3,]   25 #[4,]   28 # #[[2]]  #    [,1]

[R] merge 2 data.frames

2013-02-06 Thread Mat
Hello together, i have probably a easy question, but how can i sum 2 data.frames among each other. I have 2 data.frames which look like this one: Cu.No. place level 1 123London A 2111 Paris B Cu.No. place level 1 333

[R] (no subject)

2013-02-06 Thread Laura de Mergelina
Where can I mark the option to not receive emails from users? -- Laura de Mergelina __ 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 provi

[R] Heteroscedasticity Plots

2013-02-06 Thread N. Janz
To detect heteroscedasticity for a multiple linear OLS regression (no time dependencies): What if the residuals vs. fitted values plot shows well behaved residuals (cloud) - but the some of the x versus residuals plots are a megaphone? Also, it seems that textbooks and internet tutorials in R

Re: [R] S4 Classes and Initialize methods

2013-02-06 Thread Franck Doray
Hi Martin, thanks for the answer. I do agree ; in my example the initalize methods are not very releavant. It was actually a toy example. I came across the issue in the following case - I developped an object (say DB - for database) that was able to handle in a nice way a connection and que

[R] The interpretation of lm(y~x)?

2013-02-06 Thread jing tang
Hi, I am reading the book "Mixed Effects Models in S and S-Plus" and come across an example with the Rail data. I tried to use lm(travel~Rail,data=Rail) and got the following result: Call: lm(formula = travel ~ Rail, data = Rail) Residuals: Min 1Q Median 3Q Max -6.6667 -1.

Re: [R] developing package: dealing with namespaces

2013-02-06 Thread Vitalie Spinu
>> Duncan Murdoch >> on Mon, 04 Feb 2013 13:23:57 -0500 wrote: DM> On 04/02/2013 12:59 PM, Ross Boylan wrote: >> I am tweaking an R package for which I have the source; the relevant code >> is in R not C. I'm making changes to the package code. >> >> What is the best workflow for

[R] Peak detector help!?

2013-02-06 Thread Johannes Graumann
Grrr ... new trial with code here: http://pastebin.com/RjHNNG9J Maybe the amount of inline-code prevented posting? Hello, I am writing a simple peak detector and it works quite well ... however there's one special case below, that I can't get my head wrapped around ... the problem is in the "De

Re: [R] calculating odds ratio in logistic regression with interaction terms

2013-02-06 Thread Bert Gunter
1. Please do not double post. 2. This is a statistics, not an R question. Post on a statistics list, like stats.stackexchange.com instead. 3. Is this a homework question? -- we don't do homework here. -- Bert On Wed, Feb 6, 2013 at 8:59 AM, Aminreza Aamini wrote: > Dear all, > > How can i obta

[R] calculating odds ratio in logistic regression with interaction terms

2013-02-06 Thread Aminreza Aamini
Dear all, How can i obtain odds ratio in logistic regression when the model contains interaction terms in R? how can i obtain OR for a special case in R? Thanks in advance for any help. Amin __ R-help@r-project.org mailing list https://stat.ethz.ch/mail

Re: [R] weighing pro​portion of rowSums i​n dataframe

2013-02-06 Thread D. Alain
Hi Eik, thank you so much - it works perfectly! Thank you and best wishes Alain   Eik Vettorazzi hat am 6. Februar 2013 um 17:01 geschrieben: > Hi Alain, > here is a one-liner for a df without the rowSum column > > df<-data.frame(id=c("x01","x02","x03","x04","x05","x06"),a=c(1,2,NA,4,5,6

[R] calculating odds ratio in logistic regression with interaction terms

2013-02-06 Thread Aminreza Aamini
Dear all, How can i obtain odds ratio in logistic regression when the model contains interaction terms in R? how can i obtain OR for a special case? Thanks in advance for any help. Amin __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/l

[R] Omitting repeated occurrence in a string

2013-02-06 Thread Christofer Bogaso
Hello again, I was looking for some way on How to delete repeated appearance in a String. Let say I have following string: Text <- "ahsgdvasgAbcabcsdahj" Here you see "Abc" appears twice. But I want to keep only 1 occurrence. Therefore I need that: Text_result <- "ahsgdvasgAbcsdahj" (i.e. the f

Re: [R] how to "multiply" list of matrices by list of vectors

2013-02-06 Thread David Romano
Thanks Rolf and Arun! -David On Wed, Feb 6, 2013 at 6:13 AM, arun wrote: > Hi, > > I got an error message with: > vlist <- apply(mm, list) > > Error in match.fun(FUN) : argument "FUN" is missing, with no default > #assuming that > vlist <- apply(mm,2,list) > > mapply("%*%",mlist,vlist[1:2],SIM

Re: [R] weighing proportion of rowSums in dataframe

2013-02-06 Thread Eik Vettorazzi
Hi Alain, here is a one-liner for a df without the rowSum column df<-data.frame(id=c("x01","x02","x03","x04","x05","x06"),a=c(1,2,NA,4,5,6),b=c(2,4,6,8,10,NA),c=c(NA,3,9,12,NA,NA)) (df$wSum<-apply(sweep(df[,-1],1,rowSums(df[,-1],na.rm=T),"/"),1,function(x)sum(x*w,na.rm=T))) hth. Am 06.02.2013 1

Re: [R] First R Package --- Advice?

2013-02-06 Thread ivo welch
a nice aspect about roxygen (and perl pod) is that it compiles into the standard .Rd files. it's not a substitute, but a complement tool. it may also make a good start for docs when one starts writing code, and be eventually yanked out in favor of direct changes in the .Rd files that it has creat

Re: [R] First R Package --- Advice?

2013-02-06 Thread Duncan Murdoch
On 06/02/2013 9:49 AM, Hadley Wickham wrote: >> I have heard of people using noweb to do this, but I can't point to any >> examples. I'd actually recommend against it. Good documentation files >> don't >> make good source files. > > the compiler package in base R is, apparently, developed using

Re: [R] First R Package --- Advice?

2013-02-06 Thread Duncan Murdoch
On 06/02/2013 9:44 AM, Martin Morgan wrote: On 02/06/2013 03:31 AM, Duncan Murdoch wrote: > On 13-02-05 7:43 PM, ivo welch wrote: >> Dear R experts--- >> >> after many years, I am planning to give in and write my first R >> package. I want to combine my collection of collected useful utility >>

Re: [R] First R Package --- Advice?

2013-02-06 Thread Hadley Wickham
>> I have heard of people using noweb to do this, but I can't point to any >> examples. I'd actually recommend against it. Good documentation files >> don't >> make good source files. > > the compiler package in base R is, apparently, developed using noweb > https://svn.r-project.org/R/trunk/src/

Re: [R] First R Package --- Advice?

2013-02-06 Thread Martin Morgan
On 02/06/2013 03:31 AM, Duncan Murdoch wrote: On 13-02-05 7:43 PM, ivo welch wrote: Dear R experts--- after many years, I am planning to give in and write my first R package. I want to combine my collection of collected useful utility routines. as my guide, I am planning to use Friedrich Leis

Re: [R] First R Package --- Advice?

2013-02-06 Thread Hadley Wickham
> Other people have recommended Roxygen, but honestly I haven't seen a package > documented with Roxygen where the documentation was adequate. > It looks as though it's great to get initial documentation created, but does > not appear to encourage followup. I don't think that's a problem with roxy

[R] weighing proportion of rowSums in dataframe

2013-02-06 Thread D. Alain
Dear R-List, I am sure there must be a very simple way to do this - I just do not know how... This is what I want to do: #my dataframe df<-data.frame(id=c("x01","x02","x03","x04","x05","x06"),a=c(1,2,NA,4,5,6),b=c(2,4,6,8,10,NA),c=c(NA,3,9,12,NA,NA),sum=c(3,9,15,24,15,6))    id    a     b  

Re: [R] How to dynamically replace the text behind dollar sign: '$'

2013-02-06 Thread 谢一鸣
Thank you, David. I believe you have made the thing more clear to me. Best Regards, Xie YM 在 2013-02-06 16:14:18,"David Winsemius"  写道: > >On Feb 5, 2013, at 10:48 PM, 谢一鸣 wrote: > >> Thanks David, your solution perfectly solve my problem. But Do you   >> know what exactly the mechanism of "Compu

Re: [R] integrate: Don't do this?

2013-02-06 Thread Göran Broström
To answer my own question: I thought for a while that centering is the solution to the problem, but it is not: > integrate(dnorm, 0, Inf, mean = 25) 3.187474e-05 with absolute error < 5.9e-05 > integrate(dnorm, -25, Inf, mean = 0) 3.187474e-05 with absolute error < 5.9e-05 Here "Don't do this"

Re: [R] First R Package --- Advice?

2013-02-06 Thread Duncan Murdoch
On 13-02-05 7:43 PM, ivo welch wrote: Dear R experts--- after many years, I am planning to give in and write my first R package. I want to combine my collection of collected useful utility routines. as my guide, I am planning to use Friedrich Leisch's "Creating R Packages: A Tutorial" from Sep

Re: [R] How to menage decimals in order to obtain accurate estimates

2013-02-06 Thread S Ellison
> I've checked my iteration loop with other dataset, i've not > problems with integer numbers or other dataset with decimals > but not all decimals dataset. Any R data set that is 'not all decimals' will be represented internally as floating point* (eg c(1, 2, 3, 1.5) consists of four floating

Re: [R] How to menage decimals in order to obtain accurate estimates

2013-02-06 Thread mary
I've checked my iteration loop with other dataset, i've not problems with integer numbers or other dataset with decimals but not all decimals dataset. I would like it works with all type of data. Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-menage-decimals-in-or

Re: [R] CAPER pgls() anova not working with variable as factor

2013-02-06 Thread Bianca A Santini
Hi there, > > I am using the function pgls in the CAPER package, everything seems to run > fine except for one of my variables. > When using this variable as continuous the anova works without problem, > but if using the same variable as factor (in fact, this is what it is), the > program returns

[R] LaplacesDemon.hpc parallel prosessing problem

2013-02-06 Thread Journals
I have a problem with the LaplacesDemon.hpc which terminates with an error. I am not sure if this is in the parallel or the LaplacesDemon package. And if it is a unsuffiency of my code or of the packages. The code runs WELL as NON paralellized code. > Fit <- LaplacesDemon.hpc(Model, Data=M

Re: [R] Nested loop and output help

2013-02-06 Thread PIKAL Petr
Hi This is an error I get with your loop code due to this line capture.output(print(lll), file = "C:/Chi_Square_fix/temp.txt", append = TRUE) Error in file(file, if (append) "a" else "w") : cannot open the connection In addition: Warning messages: 1: In chisq.test(lll[["mat4"]], correct = FALSE

Re: [R] How to menage decimals in order to obtain accurate estimates

2013-02-06 Thread Jim Lemon
On 02/06/2013 07:51 PM, mary wrote: I'm sorry, I have a data set contains numbers with more decimal places, the data are available in R "data (milk)". I made a loop to get a robust correlation matrix but in calculations, decimals cause me problems ( especially I do not know how R rounds numbe

Re: [R] How to obtain the model/equation at each level automatically in a regression model with a few factors

2013-02-06 Thread Andrew Robinson
Hi Chunlin, You have to write your own myCmatrix. Cheers Andrew On Wednesday, February 6, 2013, chunlin liu wrote: > Thanks, Andrew. > > > > I studied the function "estimable" in package "gmodels" > > and realized that it could combine the model coefficients together > > if a correct cm matri

Re: [R] How to menage decimals in order to obtain accurate estimates

2013-02-06 Thread mary
I'm sorry, I have a data set contains numbers with more decimal places, the data are available in R "data (milk)". I made a loop to get a robust correlation matrix but in calculations, decimals cause me problems ( especially I do not know how R rounds numbers by default) so the diagonal should

Re: [R] non-overlapping blocks bootstrap?

2013-02-06 Thread Martin Ivanov
Dear Rafael, Thank You very much for Your reply. I need to use non-overlapping blocks and such that each block ends with an element having an index multiple of 3 in the original series. For example if I have the numbers: 1 2 3 4 5 6 7 8 9, the samples I could take are: 123 456 789, 456 789

Re: [R] Do we have GARCH-in-mean VAR in R?

2013-02-06 Thread Pascal Oettli
Hello, RsiteSearch('garch') require(sos) findFn('garch') HTH, Pascal Le 06/02/2013 16:50, jpm miao a écrit : Hi everyone, Do we have GARCH-in-mean VAR in R? Is there any GARCH package in R? Thanks, Miao [[alternative HTML version deleted]] __

Re: [R] How to obtain the model/equation at each level automatically in a regression model with a few factors

2013-02-06 Thread chunlin liu
Thanks, Andrew. I studied the function "estimable" in package "gmodels" and realized that it could combine the model coefficients together if a correct cm matrix is provided. For example, if mylm <- lm(y ~ x1 + factor(x2) + x3*factor(x4), mydata) Assume that factors x2 and x4 have 6 and

Re: [R] Was confused with options(error = expression(NULL)) in example(stop)

2013-02-06 Thread Suharto Anggono Suharto Anggono
When I wrote the message earlier, I didn't actually try running example for function 'stop' from R CMD BATCH. Now, I have run a script with this content from R CMD BATCH. example(stop) It turns out that execution of the example still didn't continue after first error. But, there was no "Execut

Re: [R] How to dynamically replace the text behind dollar sign: '$'

2013-02-06 Thread David Winsemius
On Feb 5, 2013, at 10:48 PM, 谢一鸣 wrote: Thanks David, your solution perfectly solve my problem. But Do you know what exactly the mechanism of "Computing on the language" in pdf file: "R language definition", Can that "THING" do the same job? I wouldn't consider that to be "computing on t