Re: [R] Two geom_bar with counts to put in the same plot

2019-12-04 Thread Rui Barradas
Hello, Is it as simple as this? The code below does not separate the participant1 and participant2, only the 'delta' variables. idv <- grep("part", names(DB)[-(3:4)], ignore.case = TRUE, value = TRUE) dblong <- reshape2::melt(DB[-(3:4)], id.vars = idv) head(dblong) ggplot(dblong, aes(x =

[R] Error in FUN(X[[i]], ...) : subscript out of bounds

2019-12-04 Thread Neha gupta
Hi , I know nobody will respond to my query as I asked few in the past and no answer received for any of my questions. However, I am asking here with the hope it will get responded. I am using bayesian optimization to tune the parameter of mtry for random forest but it gives me the error: Error

Re: [R] Combining text files

2019-12-04 Thread Eric Berger
Continuing with Jeff's point: do you know for certain that the serial number in row 5 of one file corresponds to the 'work order number' in row 5 of a different file? Ideally this could be verified based on some sort of identifier that appears as a column in both files and you could match up

Re: [R] package MCMCpack

2019-12-04 Thread Duncan Murdoch
On 04/12/2019 8:47 a.m., Prophet, William wrote: I am running R on my work computer with the following parameters: sessionInfo() R version 3.5.3 (2019-03-11) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) I am trying to install the "MCMCpack" library.

[R] [R-pkgs] ropenblas package

2019-12-04 Thread Pedro Rafael
Dear colleagues, The *ropenblas* is a package designed to facilitate the linking of the library *OpenBLAS* with the language *R* . The package, which works only for Linux systems, will automatically

[R] package MCMCpack

2019-12-04 Thread Prophet, William
I am running R on my work computer with the following parameters: > sessionInfo() R version 3.5.3 (2019-03-11) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200) I am trying to install the "MCMCpack" library. In the process however, I receive the message: >

Re: [R] Error in FUN(X[[i]], ...) : subscript out of bounds

2019-12-04 Thread PIKAL Petr
Hi I am pretty sure that nobody will be able to answer your question due to lack of information. Missing parentheses here bounds <- list(mtry = c(-2, 5) Use ?debug if the error is from your function. If the code is coppied from some help page, use the data from help page and try to

Re: [R] package MCMCpack

2019-12-04 Thread Prophet, William
Yes, I should have mentioned that I tried this same line of code and I still got an error. -Original Message- From: Duncan Murdoch Sent: Wednesday, December 4, 2019 8:32 AM To: Prophet, William ; r-help@r-project.org Subject: Re: [R] package MCMCpack Sent by an external sender

Re: [R] Error in FUN(X[[i]], ...) : subscript out of bounds

2019-12-04 Thread William Dunlap via R-help
In your fit_bayes function, you have getTrainPerf(mod)[, "TrainRMSE"] What are the column name of the output of getTrainPerf(mod)? print(colnames(getTrainPerf(mod))) You can home in on the problem faster if you call traceback() immediately after the error. Bill Dunlap TIBCO Software

Re: [R] Two geom_bar with counts to put in the same plot

2019-12-04 Thread Francesca
Hi! It is not exactly what I wanted but more than I suspected I could get. Thanks a lot, this is awesome! Francesca On Wed, 4 Dec 2019 at 14:04, Rui Barradas wrote: > Hello, > > Please keep R-Help in the thread. > > As for the question, the following divides by facets, participation1/2 > with

Re: [R] How to use preProcess in Caret?

2019-12-04 Thread William Michels via R-help
Hello, Have you tried alternative methods of pre-processing your data, such as simply calling scale()? What is the effect on convergence, for both the caret package and and the neuralnet package? There's an example using scale() with the neuralnet package at the link below:

[R] Error related to matrix system is exactly singular

2019-12-04 Thread Ana Marija
Hello, I was running this software https://github.com/eleporcu/TWMR via: Rscript MR.R ENSG0154803 my files are located here: https://filebin.net/smt1kcw2d9sody67 I got this error: [1] "ENSG0154803" Error in solve.default(C) : Lapack routine dgesv: system is exactly singular: U[15,15]

Re: [R] package MCMCpack

2019-12-04 Thread Prophet, William
That was it!!  Thank you very much. Bill P. -Original Message- From: William Michels Sent: Wednesday, December 4, 2019 4:15 PM To: Prophet, William Cc: Duncan Murdoch ; r-help@r-project.org Subject: Re: [R] package MCMCpack Sent by an external sender

Re: [R] package MCMCpack

2019-12-04 Thread William Michels via R-help
You can try installing the mcmc package first: https://cran.r-project.org/web/packages/mcmc/index.html https://cran.r-project.org/src/contrib/Archive/mcmc/ I've used mcmc_0.9-5 with MCMCpack_1.4-3 under R version 3.3.3. HTH, Bill. W. Michels, Ph.D. On Wed, Dec 4, 2019 at 2:52 PM Prophet,

Re: [R] package MCMCpack

2019-12-04 Thread William Michels via R-help
Hi William, It's not clear to me why you need this particular older version of MCMCpack. From the archive I find MCMCpack_1.2-4 dates back to 2012-06-14, and MCMCpack_1.2-4.1 dates back to 2013-04-07: MCMCpack_1.2-4.1.tar.gz 2013-04-07 00:05 481K MCMCpack_1.2-4.tar.gz 2012-06-14 12:36 482K Have

Re: [R] package MCMCpack

2019-12-04 Thread Prophet, William
Thank you for your reply. I have tried various versions and I get an error in each case. In the case of MCMCpack_1.4-3 although the error may be related to something specific in my configuration. In any case, I get the following error when I try to install that version: > packageurl <- >

Re: [R] Error related to matrix system is exactly singular

2019-12-04 Thread Jeff Newmiller
See below On December 4, 2019 10:04:45 AM PST, Ana Marija wrote: >Hello, ... removed for clarity > >Please advise, is it something wrong with the format of my files now? > >Thanks > >Ana > > [[alternative HTML version deleted]] ... >PLEASE do read the posting guide

[R] Lapack routine dgesv: system is exactly singular

2019-12-04 Thread Ana Marija
Hello, I am sorry for posting this question related to TWMR but it seems I can nto proceed with this. Hopefully this post now will make sense. So I am running this code: https://github.com/eleporcu/TWMR/blob/master/MR.R I made this change in code so that I can run it like this: Rscript MR.R

Re: [R] Two geom_bar with counts to put in the same plot

2019-12-04 Thread Francesca
Hi, sorry for bothering again. I was wondering how I can reshape the data, if in your code, I would like to have only two panels, where in the panel with Participation =0, I represent delta11_L of participation1==0 and delta2_L of participation2==0, and in the right panel, I want

Re: [R-es] Coeficientes GLM binomial

2019-12-04 Thread Jaume Tormo
Un ejemplo con un modelo más simple: He especificado este modelo: >formula(m2.pile) ger ~ tem + pot + time Si hago predict me da: >predict(m2.pile,newdata=data.frame(tem=25,pot=0,time=3),type="response") 0.08243262 Extraigo los coeficientes: > coef(m2.pile) (Intercept) tem pot

Re: [R-es] Coeficientes GLM binomial

2019-12-04 Thread Jaume Tormo
Muchas gracias Marcelino y Manuel, He seguido vuestros consejos, pero sigo teniendo el mismo problema. Creo que lo que me ocurre es que no se como montar la formula con los valores de temperatura, potencial y tiempo. Lo que quiero decir es: Yo a R le especifico que el modelo es así: