Re: [R] Post for R

2017-05-31 Thread Hasan Diwan
Carrie, I would suggest a few things before posting your code here: - Put a dput(df) - Format it properly, as it stands it won't compile, because you're missing newlines/semicolons between, e.g. Z <- list()*; *G <- list(); for (i in length(L1)){ Z=data.frame(L1[i])*;* G <- split(Z$submax,"0.02")*;

Re: [R] [FORGED] Re: Question on function "scatterplot3d"

2017-05-31 Thread Rolf Turner
On 01/06/17 13:17, Ismail SEZEN wrote: On 1 Jun 2017, at 03:41, li li wrote: Hi all, I have a question with regard to making plots using function "scatterplot3d". Please see the example below. It looks like, for y axis, the tickmark text was cutoff. The number "10" does not show up complete

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-31 Thread Nelly Reduan
Thank you very much Rob for your answer. I have some difficulties to understand how to apply my agent-based model to each parameter combination generated by the LHS, in particular when parameters are defined by probability distributions. Indeed, I have multiple parameters in my model: parameters

[R] Post for R

2017-05-31 Thread carrie wang via R-help
Hello,  I want to split the dataframe into 1000 groups based on two column values(max value and second max value). First, I made two lists L1 and L2.  L1 is the list divided into 100 groups based on the range of max value and L2 is divided into 10 groups based on the second max values. Now I wa

[R] installed.packages() does not work properly

2017-05-31 Thread Anil Dabral
Hi, I tried executing the following statement multiple times on R 3.4 and it worked only the first time. In older versions of R it seems to have worked. Am I doing anything wrong? In R 3.4 (works only the first time) tmp <- installed.packages() #this works tmp <- installed.packages() ## See

Re: [R] Question on function "scatterplot3d"

2017-05-31 Thread Ismail SEZEN
> On 1 Jun 2017, at 03:41, li li wrote: > > Hi all, > I have a question with regard to making plots using function > "scatterplot3d". > Please see the example below. It looks like, for y axis, the tickmark text > was cutoff. > The number "10" does not show up completely. I tried to work with pa

[R] Question on function "scatterplot3d"

2017-05-31 Thread li li
Hi all, I have a question with regard to making plots using function "scatterplot3d". Please see the example below. It looks like, for y axis, the tickmark text was cutoff. The number "10" does not show up completely. I tried to work with par(mpg). It does not seem to work. Hope to get some advic

Re: [R] seek non-black box alternative to randomForest

2017-05-31 Thread Bert Gunter
On Tue, May 30, 2017 at 12:11 PM, Don McKenzie wrote: > Though off-topic for this list, your question (complaint?) comes up a lot in > discussions of analytical methods, and has generated hundreds of papers > (Google is your friend here). > You can start with > > https://www.quora.com/What-are-t

Re: [R] Error in readRDS(dest) (was Re: Error with installed.packages with R 3.4.0 on Windows)

2017-05-31 Thread Martin Morgan
On 05/31/2017 04:38 AM, Patrick Connolly wrote: On Tue, 23-May-2017 at 12:20PM +0200, Martin Maechler wrote: [...] |> |> Given the above stack trace. |> It may be easier to just do |> |> debugonce(available.packages) |> install.packages("withr") |> |> and then inside available.packages,

Re: [R] [FORGED] deviance in GLM vs. summary.glm

2017-05-31 Thread Rolf Turner
On 31/05/17 16:53, array chip via R-help wrote: Hi, I am running a logistic regression on a simple dataset (attached) using glm: dat<-read.table("dat.txt",sep='\t',header=T) If I use summary() on a logistic model: summary(glm(y~x1*x2,dat,family='binomial')) Coefficients:Estimate S

[R] Locale changed after an RODBC connection on Linux

2017-05-31 Thread François Morneau
Dear helpeRs, When connecting to a PostgreSQL database (via the RODBC functions odbcConnect or odbcDriverConnect), my locale are redefined from: [1] LC_CTYPE=fr_FR.UTF-8 LC_NUMERIC=C [3] LC_TIME=fr_FR.UTF-8LC_COLLATE=fr_FR.UTF-8 [5] LC_MONETARY=fr_FR.UTF-8LC_MESSAGES=fr_FR.

Re: [R] Error in readRDS(dest) (was Re: Error with installed.packages with R 3.4.0 on Windows)

2017-05-31 Thread Patrick Connolly
On Tue, 23-May-2017 at 12:20PM +0200, Martin Maechler wrote: [...] |> |> Given the above stack trace. |> It may be easier to just do |> |> debugonce(available.packages) |> install.packages("withr") |> |> and then inside available.packages, (using 'n') step to the |> point _before_ the

Re: [R] deviance in GLM vs. summary.glm

2017-05-31 Thread Berwin A Turlach
Dear Yi, On Wed, 31 May 2017 04:53:25 + (UTC) array chip via R-help wrote: > Hi, I am running a logistic regression on a simple dataset (attached) > using glm: [...] As you can see, the interaction term is very > insignificant (p = 0.996)! Well, all terms are not significant (actually, AFA

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-31 Thread Tobias Christoph
wuhu, the plot is running now;) I had to put three brackets instead of two at the end of the formula. Thank you! Am 30.05.2017 um 21:29 schrieb Ismail SEZEN: > >> On 30 May 2017, at 21:44, Tobias Christoph > > wrote: >> >> Okay;) >> >> First of all many thanks