Re: [R] Trend significant at p=0.05?

2016-03-14 Thread Bert Gunter
This is not the place for a statistical discussion; it *is* the place for R programming help. However, you seem to be confused about confidence intervals and significance, i.e. P values. You and others may wish to read about why the "magic" P = .05 significance level is a **bad idea**,

[R] R problem : Error: protect(): protection stack overflow

2016-03-14 Thread Mohammad Tanvir Ahamed via R-help
Hi, i got an error while i am running a big data. Error has explained by the following sample sample ## Load data mdata <- as.matrix(read.table('https://gubox.box.com/shared/static/qh4spcxe2ba5ymzjs0ynh8n8s08af7m0.txt', header = TRUE, check.names = FALSE, sep = '\t')) ## Install and

Re: [R] How to speed up R program

2016-03-14 Thread Sarah Goslee
Nobody can help you without a lot more information, though there are some obvious places to start, like pre-allocating objects rather than growing them inside a loop. You can get a good discussion of how to profile your code here: http://adv-r.had.co.nz/Profiling.html Sarah On Mon, Mar 14, 2016

Re: [R] How to speed up R program

2016-03-14 Thread Amos B. Elberg
There's no way for anyone to be sure without looking directly at the code. As Jim said, the prime suspect is inefficient use of memory and excessive use of virtual memory. The book "Advanced R" by Hadley Wickham has a very detailed and easy to understand section on how to benchmark and

Re: [R] How to speed up R program

2016-03-14 Thread Ragia .
thanks for answering the program is simulation it runs on data ( wish is taken from file to memory once)  but it runs about 10k times and in each mad some calculations ? hope this clear the problem,  Ragia  > Date: Tue, 15 Mar 2016 08:45:56 +1100 >

Re: [R] How to speed up R program

2016-03-14 Thread Jim Lemon
Hi Ragia, Improving the efficiency of a program usually requires detailed analysis of what it is doing and how those operations can be performed more rapidly. That is to say, without knowing what the program is supposed to accomplish and how it is doing it now, very little help can be provided.

[R] How to speed up R program

2016-03-14 Thread Ragia .
Dear group I have two R sessions  running on Ubuntu 14.0x server , and I found that my program will take too long time to be finished( months...!), I used top command and found that   cpu usage is 21.3%.  the server is Enterprise SP-64 - 64G E5-1630v3 SoftRaid 2x2 TB Server . 6 core how

[R] [R-pkgs] New package lazysql: Lazy SQL Programming

2016-03-14 Thread Uwe Block
Dear R users, The new package lazysql has been accepted on CRAN (https://cran.r-project.org/web/packages/lazysql/). It includes helper functions to build SQL statements under program control for use with dbGetQuery or dbSendQuery. They are intended to increase speed of coding and to reduce

[R] Trend significant at p=0.05?

2016-03-14 Thread Chattopadhyay, Somsubhra
Hi, I am trying to calculate trends in my climatic time series, using the "Zyp" package. Initially, I tried with my daily data (I have daily rainfall data of 30 years) but then both the Zhang method and Yue-Pilon method yielded unrealistic results. The trend estimates were zero and so were the

Re: [R] Find the first occurrence in a list

2016-03-14 Thread Bert Gunter
No. 1.Avoid using the name "data" -- it's already a commonly used function in R. 2. Why do you want it to be a list instead of a vector? Is there a good reason for this? Consider: > d<- c(rep(0, 20), rep(1, 340)) > which(d>0)[1] [1] 21 3. If you haven't already done so, spend some time with

[R] Find the first occurrence in a list

2016-03-14 Thread Glenn Schultz
All, I am looking to find the first principal payment date on structured MBS cash flow. I am testing the below to make into a function the correct index is returned. I am a little unsure. Is this the correct way to think about this problem or is there something already in R that can help?

Re: [R] Building a reactive plot with ggplot2 and shiny.

2016-03-14 Thread Bert Gunter
1. I don't use Shiny, so I may be wrong about this, but-- 2. Shiny is an R-Studio product. I believe they have a user support forum on their website, and you might therefore get a faster and better answer by posting there (e.g. at Rstudio.com ). Cheers, Bert Bert Gunter "The trouble with

[R] Building a reactive plot with ggplot2 and shiny.

2016-03-14 Thread Santiago Paz
I'm fairly new with R and shiny and I am trying to make an application where users can select various variables from a data set and plot the ratios of the variables in one graph. Basically: - The user selects the number of ratios they want - The user then selects which variable will be the

Re: [R] please help

2016-03-14 Thread John Kane
In line John Kane Kingston ON Canada > -Original Message- > From: bgunter.4...@gmail.com > Sent: Mon, 14 Mar 2016 07:45:28 -0700 > To: damjanfaks2...@gmail.com > Subject: Re: [R] please help > > ... also, **if** this is homework, this list has a no homework policy. Very true but it

Re: [R] please help

2016-03-14 Thread John Kane
John Kane Kingston ON Canada > -Original Message- > From: damjanfaks2...@gmail.com > Sent: Mon, 14 Mar 2016 09:43:45 +0100 > To: r-help@r-project.org > Subject: [R] please help > > Dear all, > > with the below 2 files I would like to to the t.test and var.test > > but it does not

Re: [R] please help

2016-03-14 Thread Bert Gunter
... also, **if** this is homework, this list has a no homework policy. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Mar 14, 2016 at 1:43 AM,

[R] Problems with rstan

2016-03-14 Thread david.jessop
Hi I'm having a really odd problem with rstan (and in fact shiny), which is I can't actually load the package: > ls (all=TRUE) character(0) > library (rstan) Loading required package: ggplot2 Error : .onAttach failed in attachNamespace() for 'rstan', details: call: pkgdesc$Packaged error: $

Re: [R] specify size of box around legend

2016-03-14 Thread Rainer M Krug
David L Carlson writes: > Also you can specify the upper left/lower right coordinates of the legend box: > > # Get the default positions/sizes > plot(1, 1) > a <- legend(x="topleft", legend = x, title = "L 1") > b <- legend(x="bottomleft", legend = y, title = "L 2") > > # Use

Re: [R] specify size of box around legend

2016-03-14 Thread David L Carlson
Forgot that I had changed the original example code: You need this first to get the example to work: x <- LETTERS[1:10] y <- paste(LETTERS[1:10], letters[1:12],LETTERS[1:10]) --- David C -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of David L

Re: [R] specify size of box around legend

2016-03-14 Thread David L Carlson
Also you can specify the upper left/lower right coordinates of the legend box: # Get the default positions/sizes plot(1, 1) a <- legend(x="topleft", legend = x, title = "L 1") b <- legend(x="bottomleft", legend = y, title = "L 2") # Use those to change the box size plot(1, 1)

Re: [R-es] BioStatFLOSS 3.0

2016-03-14 Thread Javier Marcuzzi
Estimado Miguel Angel Gracias por compartir su trabajo, es bueno tener opciones, es bueno encontrar personas que mantienen sus opciónes. Javier Rubén Marcuzzi De: miguel.angel.rodriguez.mui...@sergas.es Enviado: lunes, 14 de marzo de 2016 10:27 Para: r-help-es@r-project.org Asunto: [R-es]

[R] Confidence Interval for Ipred Bagging outputs (please help)

2016-03-14 Thread Majid Javanmard
Hello everyone here is the code that implements bagging using ipred package : library(ipred) library(mlbench) data("BostonHousing") # Test set error (nbagg=25, trees pruned): 3.41 (Breiman, 1996a, Table 8) mod <- bagging(medv ~ ., data=BostonHousing, coob=TRUE) print(mod) pred <- predict(mod)

[R-es] visual studio R

2016-03-14 Thread Javier Marcuzzi
Estimados Hay una opción reciente para escribir código R desde visual studio, aún no lo usé, lógicamente lo probaré, como también es lógico que si R es software libre muchas veces se piensa que no requiere inversión, bueno, una empresa importante invierte en R, eso es bueno.

[R-es] BioStatFLOSS 3.0

2016-03-14 Thread miguel.angel.rodriguez.muinos
Hola. Os informo de que hemos publicado una nueva versión de BioStatFLOSS. Para el que no lo conozca, se trata de una recopilación de software para Windows. Es una "colección" de programas de utilidad para la realización de estudios estadísticos en general (y bioestadísticos/biomédicos en

Re: [R] please help

2016-03-14 Thread S Ellison
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Damjan / > Subject: [R] please help > > Dear all, > > with the below 2 files I would like to to the t.test and var.test > > but it does not work. > > Can you help me ? > Dear Damjan The posting guide at

Re: [R] Best Regression Technique to Use

2016-03-14 Thread Michael Friendly
On 3/13/2016 6:42 PM, Ajay Andrews wrote: I have a set of independent variables that are all BINARY, and my dependent variable is also BINARY. Should I use the logistic regression for this - using the glm function? [[alternative HTML version deleted]] glm(..., family=binomial) will

[R] please help

2016-03-14 Thread Damjan /
Dear all, with the below 2 files I would like to to the t.test and var.test but it does not work. Can you help me ? thanks BR letost_ur 19721608.3 19731825.6 19741646.8 19751718.8 19761837.5 19771905.9 19781694.6 19791928.3 19801632.6 19812064.4

[R] RSNNS neural network for image classification in R

2016-03-14 Thread Valentin Pesendorfer
Hello everybody, I'm trying to harness the power of neural networks for image classification of big rasters using the `RSNNS` package in `R`. As for the data preparation and training of the model, everything works perfectly fine and the accuracies look quite promising. Subsequently, I'm

Re: [R] Best Regression Technique to Use

2016-03-14 Thread Jordan Meyer
That would be my recommendation. You can use glm() with the argument family = binomial(). - Jordan On Sun, Mar 13, 2016 at 6:42 PM, Ajay Andrews wrote: > I have a set of independent variables that are all BINARY, and my dependent > variable is also BINARY. Should I use

Re: [R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread PIKAL Petr
Hi From: Sunny Singha [mailto:sunnysingha.analyt...@gmail.com] Sent: Monday, March 14, 2016 10:37 AM To: r-help; PIKAL Petr Subject: Re: [R] Please help -- Cbind data frames within LIST() in R Thanks Petr, I'm going through the link that you have provided. Merge won't be useful in my case. Let

Re: [R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread Sunny Singha
Thanks Petr, I'm going through the link that you have provided. Merge won't be useful in my case. Let me give the complete picture of what I'm trying to achieve. I'm extracting data from fb pages. I have the data frame 'pages_df' which has all the details of the fb pages. 'Page_id' is the

Re: [R] Best Regression Technique to Use

2016-03-14 Thread Michael Dewey
Ajay Andrews wrote : You certainly _can_, whether you _should_ depends on the scientific question. I think you may need to consult someone familiar with your field of study for advice. > I have a set of independent variables that are all BINARY, and my dependent >

Re: [R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread PIKAL Petr
Hi There are several options e.g. http://stackoverflow.com/questions/6988184/combining-two-data-frames-of-different-lengths http://stackoverflow.com/questions/7196450/create-a-data-frame-of-unequal-lengths but maybe you want to do actually merging see ?merge Cheers Petr > -Original

[R] Please help -- Cbind data frames within LIST() in R

2016-03-14 Thread Sunny Singha
Hi, Please help and guide. I want to cbind dataframes within the list object: List object 'post_data' contains below sampled data frames: post_data $posts from_id user_name post_msg $comm comm_id from_id message $Likes username like_id *Note: The columns in each data frame