Re: [R] 'metafor' - standardized mean difference in pre-post design studies

2015-04-14 Thread Viechtbauer Wolfgang (STAT)
Hi, I have a quesite on meta-analysis with 'metafor'. I would like to calculate the standardized mean difference (SMD), as Hedges' g, in pre-post design studies. I have data on baseline (sample size, mean and SD in both the experimental and the control group) and at end of treatment (same as

[R] Sum of some months totals

2015-04-14 Thread Frederic Ntirenganya
I want to compute monthly summaries from daily data. I want to choose which month to start and how many months to total over. Default could be to start in January and total over 3 months. For the number of rain days the default threshold is 0.85mm. I tried to make a function which sum all

Re: [R] metafor - Cochrane on change score in pre-post design

2015-04-14 Thread Michael Dewey
Comment below On 13/04/2015 20:46, Antonello Preti wrote: Hi, this is another quesite related to the use of 'metafor' for calculation of standardized mean change in pre-post design studies. Essentially, my aim is to compare different method to arrive at the same conclusion: Does the treatment

Re: [R] R studio installation

2015-04-14 Thread John Kane
You probably should go to the RStudio help/blog rather than here. This is not an RStudio list and the expertise is at the RStudoi site. Does R load on its own? What OS are you using? John Kane Kingston ON Canada -Original Message- From: sojoodmlk1...@gmail.com Sent: Tue, 14 Apr

[R] Statistics course in Palermo

2015-04-14 Thread Highland Statistics Ltd
Apologies for cross-posting There are 4 remaining seats on the following course: Course: Data exploration, regression, GLM GAM with introduction to R When: 4-8 May 2015 Where: University of Palermo, Italy Course flyer: http://www.highstat.com/Courses/Flyer2015_05Palermo.pdf URL:

[R] R studio installation

2015-04-14 Thread Sojood Malkawi
I installed R and then R studio but it doesn't open every time i try to open it it gives me this message Rstudio requires an existing installation of R in order to work. please select the version of R to use . i'm using R i386 3.1.3 and downloaded RStudio 0.98.1103 - Windows XP/Vista/7/8. do you

[R] Using Markov Regime Switching Model to Forecast

2015-04-14 Thread Afsaneh Bahrami
Dear R Users, Is there any package in R that use Markov Regime switching model to forecast ? I need to do one-step ahead forecast using a Markov Regime switching model. I have one predictor variable that switches across 2 regimes. I had a look, but I couldn't find a package in R which use a

Re: [R] PCA analysis and bootstraped loadings

2015-04-14 Thread Efstathia Defteraiou
Dear All, Thank You for the quick responses. Managed to solve my problem through: http://www.faculty.biol.ttu.edu/strauss/multivar/R/SamplePCABootstrap.R.txt or http://r.789695.n4.nabble.com/bootstrapped-eigenvector-method-following-prcomp-td877655.html Used the first one however, code is too

Re: [R] Sum of some months totals

2015-04-14 Thread Frederic Ntirenganya
Hi Jean, Thanks for the help! How can I compute monthly total of rainfall? I want to compute both monthly total of rainfall and number of raindays. In below function month_tot is a table and I want to some month. default is 3 months. The loop for quarter is not working and I am wondering why it

[R] help assigning values to matrix

2015-04-14 Thread David
Hi group, I am automatically creating several matrices to store results from different analyses on vectors of different lengths. The matrices are named according to each vector, so I can trace back results. I am using the following commands, which give me an error. My idea is to populate

Re: [R] Sum of some months totals

2015-04-14 Thread Adams, Jean
If you want to calculate the number of days having greater than a certain threshold of rain within a range of months, a function like this might serve your needs. raindays - function(data, monStart=1, monEnd=3, threshold=0.85) { with(data, { selRows - Month = monStart Month = monEnd Rain

Re: [R] help assigning values to matrix

2015-04-14 Thread Adams, Jean
I think it would be easier to keep track of what you're doing, if you save the assignment to the very end of your for() loop. For example ... # create an empty matrix to be used as a template Mtemplate - matrix(data=NA, nrow=13, ncol=3,

Re: [R] R studio installation

2015-04-14 Thread David L Carlson
R Studio loads R if it can find it. Since you have installed R, the error message means that R Studio can't find it or is not sure which version to use. The part of the message that says please select the version of R to use should give you a dialog box to use to navigate to the directory that

Re: [R] Using Markov Regime Switching Model to Forecast

2015-04-14 Thread Jeff Newmiller
Perhaps you should learn to use Google? It came up easily there for me. There is also an R package called sos that can help you find capabilities among the thousands of contributed packages on CRAN. --- Jeff Newmiller

Re: [R] plotting rasters - no plot, no error

2015-04-14 Thread Monica Pisica
Hi Mike, Very interesting. The plot itself on the computer that does not plot - still does not plot - no surprise there. But the command with useRaster = FALSE actually plots the raster. So that means it is something wrong with the raster package? Did i forget to install some dependency,

Re: [R] Running R Remotely on LINUX

2015-04-14 Thread arnaud gaboury
On Tue, Apr 14, 2015 at 7:09 PM, Sarah Goslee sarah.gos...@gmail.com wrote: Hi Michael, On Tue, Apr 14, 2015 at 12:57 PM, Michael Haenlein haenl...@escpeurope.eu wrote: Dear all, I am used to running R locally on my Windows-based PC. Since some of my computations are taking a lot of

Re: [R] Wrong results from anova

2015-04-14 Thread William Dunlap
It is a printing problem - the default number of digits in print.summary.aov is max(3L, getOption(digits) - 3L). Set options(digits=7) instead of your current 6 (?) or try print(summary(fit.Y), digits=7) to see more digits. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Apr 14, 2015 at

Re: [R] Obfuscate AES password

2015-04-14 Thread Robert Baer
I'm not sure I completely understand your authentication needs, but perhaps the RCurl package could be of some use to you. Rob On 4/13/2015 1:26 AM, Luca Cerone wrote: Thanks Jeff, and OK I'll move next questions on the topic to the devel list :) I was hoping there were packages that already

Re: [R] : automated levene test and other tests for variable datasets

2015-04-14 Thread Bert Gunter
Sounds like you need to do some of your own homework... In particular, you need to learn how to write your own functions in R to carry out such tasks. There are many good tutorials on how to program in R, e.g. the Intro to R that ships with R and many others that can be found by searching. Choose

Re: [R] Wrong results from anova

2015-04-14 Thread Phil Spector
Li Li - I belive it's a rounding error -- try setting options(digits=8) before displaying the output: summary(fit.Y) Df Sum Sq Mean Sq F value Pr(F) sample.Y 3 2203 734 190706 2e-16 *** Residuals8 0 0 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01

[R] Fwd: Can't get CVlm from DAAG package to work on my data - R 3.1.3, DAAG 1.20

2015-04-14 Thread deltaquattro
Hi, I'm trying to get cross validation error for a simple linear regression model, using function CVlm from package DAAG. I would need also the MSE errors for each fold, because I want to test the one standard error rule. My code is a=c(0.0056, 0.0088, 0.0148, 0.0247, 0.0392, 0.0556, 0.0632,

[R] Cost-effectiveness Analysis using R

2015-04-14 Thread Singh, Ashima
?Hi, I was wondering if R has a provision of performing cost-effectiveness analyses using decision trees and markov models. Thanks! Ashima [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

[R] Wrong results from anova

2015-04-14 Thread li li
Hi all, I have following data. When I perform an anova, the residual sum of square returns to be zero. But this is wrong, since we can hand calculate the RSS to be around 0.0308. Did anyone come across the same problem before? Any suggestions? Thanks. Hanna ydata Y sample.Y 1

[R] Cost-effectiveness Analysis in R

2015-04-14 Thread Singh, Ashima
? Hi All, I was wondering if R has a provision of performing cost-effectiveness analyses using decision trees and markov models. And if anyone has used it before. Thanks! Ashima [[alternative HTML version deleted]] __

Re: [R] Wrong results from anova

2015-04-14 Thread Michael Dewey
See in-line On 14/04/2015 18:23, li li wrote: Hi all, I have following data. When I perform an anova, the residual sum of square returns to be zero. But this is wrong, since we can hand calculate the RSS to be around 0.0308. Did anyone come across the same problem before? Any suggestions?

[R] Running R Remotely on LINUX

2015-04-14 Thread Michael Haenlein
Dear all, I am used to running R locally on my Windows-based PC. Since some of my computations are taking a lot of time I am now trying to move to a remote R session on a LINUX server but I am having trouble to getting things work. I am able to access the LINUX server using PuTTY and SSH. Once I

Re: [R] Running R Remotely on LINUX

2015-04-14 Thread Sarah Goslee
Hi Michael, On Tue, Apr 14, 2015 at 12:57 PM, Michael Haenlein haenl...@escpeurope.eu wrote: Dear all, I am used to running R locally on my Windows-based PC. Since some of my computations are taking a lot of time I am now trying to move to a remote R session on a LINUX server but I am having

[R] any way to write sas7bdat with R

2015-04-14 Thread Wensui Liu
I know R can read / write SAS data in xpt format and can also read SAS data in sas7bdat format. However, I am wondering if I can write sas7bdat with R. thanks. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To

Re: [R] Wrong results from anova

2015-04-14 Thread li li
0.003725088 is the mean square error. 2015-04-14 13:44 GMT-04:00 Michael Dewey li...@dewey.myzen.co.uk: See in-line On 14/04/2015 18:23, li li wrote: Hi all, I have following data. When I perform an anova, the residual sum of square returns to be zero. But this is wrong, since we

[R] Help with RUSBoost

2015-04-14 Thread Lisa Gandy
I am considering using RUSBoost (https://github.com/SteveOhh/RUSBoost) and was wondering if anyone has used this package, and could give me some insight and help. The help would be on more of the machine learning side, I just have a few questions about implementation. [[alternative HTML

[R] RHive and compression

2015-04-14 Thread Hiroki Hosonuma
Hi all, If I run the following command in hive shell, I can get a compressed output(e.g. 00_0.gz) in HDFS because I already changed Hadoop and Hive configuration files to achieve this. *command:* insert overwrite directory '/testdata' select * from tbl; However, if I run the same command

[R] plotting rasters - no plot, no error

2015-04-14 Thread Monica Pisica
Hi, I have the current version of R installed on 2 different Windows computers. On one i can plot using the plot function a raster in geotif format, on the other it plots only the axis, an empty color bar and no raster what so ever without generating any errors or warnings. So i suspect

Re: [R] : automated levene test and other tests for variable datasets

2015-04-14 Thread Michael Dewey
You ask quite a lot of questions, I have given some hints about your first example inline On 14/04/2015 09:07, Joachim Audenaert wrote: Hello all, I am writing a script for statistical comparison of means. I'm doing many field trials with plants, where we have to compare the efficacy of

Re: [R] plotting rasters - no plot, no error

2015-04-14 Thread Michael Sumner
On Wed, 15 Apr 2015 at 01:16 Michael Sumner mdsum...@gmail.com wrote: On Wed, 15 Apr 2015 at 00:50 Monica Pisica pisican...@hotmail.com wrote: Hi, I have the current version of R installed on 2 different Windows computers. On one i can plot using the plot function a raster in geotif

Re: [R] plotting rasters - no plot, no error

2015-04-14 Thread Michael Sumner
On Wed, 15 Apr 2015 at 00:50 Monica Pisica pisican...@hotmail.com wrote: Hi, I have the current version of R installed on 2 different Windows computers. On one i can plot using the plot function a raster in geotif format, on the other it plots only the axis, an empty color bar and no

[R] : automated levene test and other tests for variable datasets

2015-04-14 Thread Joachim Audenaert
Hello all, I am writing a script for statistical comparison of means. I'm doing many field trials with plants, where we have to compare the efficacy of different treatments on, different groups of plants. Therefore I would like to automate this script so it can be used for different datasets

Re: [R] Make a Excel chart by R code

2015-04-14 Thread Jim Lemon
Hi jpm miao, What sort of Excel graphs do you want to produce? There are a few varieties, you know. Jim On Wed, Apr 15, 2015 at 1:54 PM, jpm miao miao...@gmail.com wrote: Hi, I understand that there're many great graphic packages in R (e.g., ggplot2) . Nevertheless, my office uses Excel

Re: [R] SOLVED: Repeated failures to install caret package (of Max Kuhn)

2015-04-14 Thread Eshwar
Thanks so much. I was struggling to install caret package on my upgraded R. It was failing to compile lme4 and threw up an error about llapack and lbas. I never realized that I needed to install lbas(I already had llapack) through SPM. Once I did that, I could install caret using install.packages

[R] scan - open text file as list

2015-04-14 Thread Hermann Norpois
Hello, I try to open a text file test.txt with the content * a b d * z u i h hh * h bh kk so that I get a list with each line as a vector with the letters as elements of the the vector. My approach ... test - scan (test.txt, what=character, sep=\n) Read 3 items test.list - lapply (test,

Re: [R] Cost-effectiveness Analysis using R

2015-04-14 Thread Singh, Ashima
I looked around online but could not figure out how to build decision trees and specify probabilities at each node along with payoffs. Can you please help ? From: mehmet.su...@gmail.com mehmet.su...@gmail.com on behalf of Suzen, Mehmet

Re: [R] Cost-effectiveness Analysis using R

2015-04-14 Thread Suzen, Mehmet
Yes. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

[R] Make a Excel chart by R code

2015-04-14 Thread jpm miao
Hi, I understand that there're many great graphic packages in R (e.g., ggplot2) . Nevertheless, my office uses Excel extensively. Is there any package in R that produces Excel graphs by R codes? Thanks! [[alternative HTML version deleted]]

Re: [R] Running R Remotely on LINUX

2015-04-14 Thread Pütz , Benno
Hi Michael, On 14 Apr 2015, at 18:59, Michael Haenlein haenl...@escpeurope.eu wrote: Dear all, I am used to running R locally on my Windows-based PC. Since some of my computations are taking a lot of time I am now trying to move to a remote R session on a LINUX server but I am having

Re: [R] Sum of some months totals

2015-04-14 Thread David L Carlson
Don't use html formatted emails and always copy the list on your replies. For example? rainstats - function(data, months=3) { if (! months %in% c(1, 2, 3, 4, 6, 12)) stop(Months must divide into 12!) period - 12/months grps - rep(1:period, each=months) Group -

Re: [R] Running R Remotely on LINUX

2015-04-14 Thread Jeff Newmiller
You should investigate using the parallel package. You have to have R installed on the Linux machine along with any contributed packages you use, but you can delegate tasks to it from within an Rgui or RStudio session running on your Windows box. There are even tutorials online that step you

[R] Vectorizing a task

2015-04-14 Thread Dennis Fisher
R 3.1.3 OS X Colleagues I have data of this sort: START - c(1, 2, 3, 4, 8, 14, 15, 118, 118, 119, 202, 202, 203, 204) END - c(1, 2, 3, 6, 13, 14, 117, 118, 118, 201, 202, 202, 203, 204) I would like to create a vector that looks like this: START.to.END-

Re: [R] Extracting unique entries by a column

2015-04-14 Thread David L Carlson
Try all.equal(df[1,3], df[2,3]) This relates to how decimal numbers are stored in computers. It is not an R only issue, but it is described in the R-FAQ: From the R-FAQ - http://cran.r-project.org/doc/FAQ/R-FAQ.html 7.31 Why doesn't R think these numbers are equal? The only numbers that can

Re: [R] Cost-effectiveness Analysis in R

2015-04-14 Thread Federman, Douglas
I've not seen much and most of the responses relate to classification trees and not clinical decision trees. See this post: https://stat.ethz.ch/pipermail/r-help/2012-July/318597.html . I was unable to run arvore on a recent version of R. -Original Message- From: R-help

[R] Reading .LIST files into R

2015-04-14 Thread Dimitri Liakhovitski
Is it possible to read a LIST file into R? Any package? I've done some googling, but there are just too many hits for a regular 'list'. Appreciate any pointers! -- Dimitri Liakhovitski __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

[R] Extracting unique entries by a column

2015-04-14 Thread Vikram Chhatre
I have a data frame of dim 3x600. There are pairs of rows which have the exact same value in column 3. head(df) POP1 POP2 ABSDIFF L0005.01 0.98484848 0.688118812 0.2967297 L0005.03 0.01515152 0.311881188 0.2967297 L0008.02 0.97727273 0.004424779 0.9728479 L0008.04

Re: [R] Vectorizing a task

2015-04-14 Thread David L Carlson
It is not vectorized, but it is simple: EXPANDED - unlist(mapply(:, START, END)) - David L Carlson Department of Anthropology Texas AM University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On

Re: [R] Running R Remotely on LINUX

2015-04-14 Thread John Sorkin
I suggest that you investigate installing RStudio server on the Linux Box. If you do this, you can logon to RStudio (on the Linux server), and it will look exactly like RStudio running on a windows box. You may need some help configuring the Linux box to allow access to port 8787, which is the

Re: [R] Extracting unique entries by a column

2015-04-14 Thread Vikram Chhatre
Hi David, Thanks. That was enlightening. Whoop. V On Tue, Apr 14, 2015 at 3:53 PM, David L Carlson dcarl...@tamu.edu wrote: Try all.equal(df[1,3], df[2,3]) This relates to how decimal numbers are stored in computers. It is not an R only issue, but it is described in the R-FAQ: From the

Re: [R] any way to write sas7bdat with R

2015-04-14 Thread Suzen, Mehmet
I didn't try this but there is an experimental package from Dr. Shotwell. http://cran.r-project.org/web/packages/sas7bdat/index.html if it can read, maybe you can modify to write as well? __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] Cost-effectiveness Analysis in R

2015-04-14 Thread Suzen, Mehmet
Do you have specific example that you have tried to implement in R? Can you post your codes too? There are high quality package BCEA and BayesTree, that could be helpful; http://cran.r-project.org/web/packages/BCEA/index.html http://cran.r-project.org/web/packages/BayesTree/index.html

Re: [R] R studio installation

2015-04-14 Thread Jeff Newmiller
But if the answer to the question Does R load on its own? is no then this probably is the right place to ask for help. Of course, I would probably just suggest re-installing R, but someone else here might have better answers.

Re: [R] Reading .LIST files into R

2015-04-14 Thread Sarah Goslee
What produced this file? On Tue, Apr 14, 2015 at 4:40 PM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Is it possible to read a LIST file into R? Any package? I've done some googling, but there are just too many hits for a regular 'list'. Appreciate any pointers! -- Dimitri

Re: [R] Reading .LIST files into R

2015-04-14 Thread William Dunlap
Try Googling for .list file extension Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Apr 14, 2015 at 1:40 PM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Is it possible to read a LIST file into R? Any package? I've done some googling, but there are just too many hits

Re: [R] Reading .LIST files into R

2015-04-14 Thread Dimitri Liakhovitski
IMDB. I guess I'll just have to open it as any text file. On Tue, Apr 14, 2015 at 4:48 PM, Sarah Goslee sarah.gos...@gmail.com wrote: What produced this file? On Tue, Apr 14, 2015 at 4:40 PM, Dimitri Liakhovitski dimitri.liakhovit...@gmail.com wrote: Is it possible to read a LIST file into

Re: [R] Extracting unique entries by a column

2015-04-14 Thread Jeff Newmiller
In the same way they would be different in any programming language. See R FAQ 7.31. --- Jeff NewmillerThe . . Go Live... DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.

Re: [R] plotting rasters - no plot, no error

2015-04-14 Thread Michael Sumner
On Wed, 15 Apr 2015 at 02:49 Monica Pisica pisican...@hotmail.com wrote: Hi Mike, Very interesting. The plot itself on the computer that does not plot - still does not plot - no surprise there. But the command with useRaster = FALSE actually plots the raster. So that means it is something

Re: [R] Running R Remotely on LINUX

2015-04-14 Thread John McKown
On Tue, Apr 14, 2015 at 11:57 AM, Michael Haenlein haenl...@escpeurope.eu wrote: Dear all, ​snip (3) Can I open several instances of R in parallel? On my PC I sometimes have 2-3 windows open in parallel that work on different calculations to save time. Not sure to which extent this is