Re: [R] matafor package - categorical moderator interpretation question

2017-04-03 Thread Viechtbauer Wolfgang (SP)
You are not conducting a proper test of the moderator. When you use 'mods = ~factor(sample_data$Participants) - 1', the model does not include an intercept term but dummy variables corresponding to all levels of the moderator. The omnibus test you are getting therefore tests the null hypothesis

Re: [R] R hangs on startup

2017-04-03 Thread John
On Sun, 2 Apr 2017 21:30:54 + Vineet Gupta wrote: > Hi, > > I have been struggling with this problem with for 2 weeks, but have > yet to find a solution on Google. > > I am running R 3.3.3 on Windows 10. For the past 2 weeks, when I open > R (and RStudio), the R screen freezes and is unusab

Re: [R] system call removes special characters from text output

2017-04-03 Thread stephen sefick
Hi Jeff, My apologies for not providing enough information. The perl code works as expected at the shell (without calling it from R). I have tried the system call inside of an ESS R session and at a the shell. Both of these produce the unexpected result. I can provide whatever information that is

Re: [R] system call removes special characters from text output

2017-04-03 Thread Jeff Newmiller
Sorry, RPsychic package not found. Please install package reprex, apply it to your problem and try again. Note that if this problem can only be produced from within a package then there is an R-package-devel mailing list that would be a more appropriate place to ask. Also, if the problem is actu

[R] system call removes special characters from text output

2017-04-03 Thread stephen sefick
Hello, I am writing an R package, and I am using system() to call a perl script. The output of the perl script is correct except for "[A/B]" is output as "AB". Can someone explain this behavior. I would like to try and fix this. many thanks, Stephen Sefick -- Let's not spend our time and resour

Re: [R] R hangs on startup

2017-04-03 Thread Vineet Gupta
Hi, Thanks to all of your answers. I have found that when I open a code file with RStudio, it opens correctly, and the R session appears to work ok. However, when I startup and R session or an RStudio session, then the R session hangs. I will try the other suggestions below to see if I can solve

[R] matafor package - categorical moderator interpretation question

2017-04-03 Thread Calin-Jageman, Robert
What does it mean if a categorical moderator is significant overall but has no significant pairwise contrasts between moderator levels? I'm using metaphor to conduct a meta-analysis with a categorical moderator with 3 levels; this yields a significant result: Test of Moderators

Re: [R] R hangs on startup

2017-04-03 Thread Vineet Gupta
John, R does not work properly, outside of RStudio. Vineet -Original Message- From: Fox, John [mailto:j...@mcmaster.ca] Sent: 03 April 2017 17:56 To: Vineet Gupta Cc: r-help@r-project.org; 'David Winsemius' Subject: RE: [R] R hangs on startup Dear Vineet, > -Original Message

Re: [R] Variation of bubble sort (based on divisors)

2017-04-03 Thread Hervé Pagès
Hi Piotr, On 03/31/2017 11:16 AM, Piotr Koller wrote: Hi, I'd like to create a function that will sort values of a vector on a given basis: -zeros -ones -numbers divisible by 2 -numbers divisible by 3 (but not by 2) -numbers divisible by 5 (but not by 2 and 3) In other words, you want to

Re: [R] Variation of bubble sort (based on divisors)

2017-04-03 Thread Boris Steipe
Piotr - keep discussions on-list please. I generally do not open attachments to eMails. You are misinterpreting the results: 0: 0 1: 1 2: 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 3: 3 9 15 21 27 (all even multiples of 3 have been sorted with 2) 5: 5 25 (10, 20, 30 are sorted as multip

Re: [R] How to source a local R file to a remote session.

2017-04-03 Thread Bert Gunter
Don: Just ask Mama Google! :-o -- 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, Apr 3, 2017 at 9:46 AM, MacQueen, Don wrote: > Strikes me as a

Re: [R] R hangs on startup

2017-04-03 Thread Fox, John
Dear Vineet, > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Vineet > Gupta > Sent: April 3, 2017 5:41 AM > To: 'David Winsemius' > Cc: r-help@r-project.org > Subject: Re: [R] R hangs on startup > > David, > > Thx for the quick reply. Firstly, apol

Re: [R] How to source a local R file to a remote session.

2017-04-03 Thread Rui Barradas
Hello, I don't use ESS but I can use google. The first hit on "ESS help mailing list" was https://stat.ethz.ch/mailman/listinfo/ess-help Hope this helps, Rui Barradas Em 03-04-2017 17:46, MacQueen, Don escreveu: Strikes me as a good question for the ESS help mailing list (and I'm sorry; I

Re: [R] How to source a local R file to a remote session.

2017-04-03 Thread MacQueen, Don
Strikes me as a good question for the ESS help mailing list (and I'm sorry; I don't remember how/where to subscribe to it). -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 3/27/17, 10:28 PM, "R-help on behalf of Jeremie Juste"

Re: [R] R hangs on startup

2017-04-03 Thread William Dunlap via R-help
Starting R with the --vanilla flag will cause it to ignore startup files. This is usually a quicker way to rule out such issues than tracking down where the startup files are stored. 'R --help' tells about other command line arguments that help home in on which file may be the problem. --no-en

Re: [R] R hangs on startup

2017-04-03 Thread Vineet Gupta
David, Thx for the quick reply. Firstly, apologies for using windows - I need to switch to Linux! Do you have any suggestion of a suitable website, that may cover how to do this? I will look on Google, but I generally find that to be a time intensive, and low reward endeavour. Rgds, Vineet

[R] Unexpected error message when making predictions from fitted PWP-CP (Cox) model

2017-04-03 Thread Bonnett, Laura
Dear all, I am using R x64 3.3.2 on Windows 10. I have fitted a Prentice-Williams-Peterson counting process model with a number of covariates as follows: Coxmod1 <- coxph(Surv(start,stop,status)~var1+var2+factor(var3)+cluster(var4)+strata(var5),data=Lauras) I would now like to make predictions