Re: [R] [FORGED] glm and stepAIC selects too many effects

2017-06-05 Thread Rolf Turner
On 06/06/17 18:08, Marc Girondot via R-help wrote: This is a question at the border between stats and r. When I do a glm with many potential effects, and select a model using stepAIC, many independent variables are selected even if there are no relationship between dependent variable and the e

[R] glm and stepAIC selects too many effects

2017-06-05 Thread Marc Girondot via R-help
This is a question at the border between stats and r. When I do a glm with many potential effects, and select a model using stepAIC, many independent variables are selected even if there are no relationship between dependent variable and the effects (all are random numbers). Do someone has a

Re: [R] integrating 2 lists and a data frame in R

2017-06-05 Thread Bogdan Tanasa
Dear Bert, thank you for your response. here it is the piece of R code : given 3 data frames below --- N <- data.frame(N=c("n1","n2","n3","n4")) M <- data.frame(M=c("m1","m2","m3","m4","m5")) C <- data.frame(n=c("n1","n2","n3"), m=c("m1","m1","m3"), I=c(100,300,400)) how shall I integrate N, a

Re: [R] integrating 2 lists and a data frame in R

2017-06-05 Thread Bert Gunter
Reproducible example, please. -- In particular, what exactly does C look ilike? (You should know this by now). -- 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

[R] integrating 2 lists and a data frame in R

2017-06-05 Thread Bogdan Tanasa
Dear all, please could you advise on the R code I could use in order to do the following operation : a. -- I have 2 lists of "genome coordinates" : a list is composed by numbers that represent genome coordinates; let's say list N : n1 n2 n3 n4 and a list M: m1 m2 m3 m4 m5 2 -- and a

Re: [R] months not working with local language (weekdays does)

2017-06-05 Thread Omar André Gonzáles Díaz
After, restarting PC I do get the months in spanish. Sorry for the hassle. 2017-06-05 15:01 GMT-05:00 Omar André Gonzáles Díaz : > Thank you Duncan and Rui for your time and interest in this issue. > > Maybe it is a problem with Windows 7 and Spanish, and not Windows 10. > > Let's wait for someo

Re: [R] months not working with local language (weekdays does)

2017-06-05 Thread Omar André Gonzáles Díaz
Thank you Duncan and Rui for your time and interest in this issue. Maybe it is a problem with Windows 7 and Spanish, and not Windows 10. Let's wait for someone with the same enviroment, before assuming it's a problem with my PC/configuration. 2017-06-05 14:37 GMT-05:00 Duncan Murdoch :

Re: [R] months not working with local language (weekdays does)

2017-06-05 Thread Duncan Murdoch
For what it's worth, I tried setting my Region | Formats setting to Spanish (Peru) in Windows 10 Control Panel, and got Spanish weekday and month results. I believe on Windows we use the Microsoft C strftime function to produce these strings, with the %A (for weekday) or %B (for month) formats

Re: [R] months not working with local language (weekdays does)

2017-06-05 Thread Rui Barradas
Hello, This doesn't answer the question, but in portuguese it works as expected. > x <- as.Date("2017-06-05") > months(x) [1] "junho" > weekdays(x) [1] "segunda-feira" > sessionInfo() R version 3.4.0 (2017-04-21) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601)

[R] months not working with local language (weekdays does)

2017-06-05 Thread Omar André Gonzáles Díaz
Hi, I want to reporte some strange behaviour with the "months" function, from base R. When using "months" to extract months from a date column, I'm getting the months in english, when I was expecting months in spanish. When using "weekdays" to extract days of week from a date column, I'm getting

Re: [R] R] Error message "cs_lu(A) failed: near-singular A (or out of memory)"

2017-06-05 Thread Jeff Newmiller
This appears to be a case of insufficient understanding of statistics, which is not on topic for r-help. Look at how well the per-firm models would work... my guess is that some of the firms have insufficient data for useful analysis. If that is not it, consider providing a more concrete example

Re: [R] Hi

2017-06-05 Thread David Winsemius
> On Jun 5, 2017, at 4:33 AM, Moshe Kelner wrote: > > Hi , > > I'm asking for a way to compute the integral of: > function(x) {x*(log(x)+b)*((log(x)+b)^(a-1)-b^(a-1))/(a-1)*(b^(a-1)} Problems here ^^^-and if(a==1)-^^^---paren--^ |||

Re: [R] Hi

2017-06-05 Thread Jeff Newmiller
Your function has mismatching parentheses. I recommend using a computer algebra system like Maxima. -- Sent from my phone. Please excuse my brevity. On June 5, 2017 4:33:56 AM PDT, Moshe Kelner wrote: >Hi , > >I'm asking for a way to compute the integral of: function(x) >{x*(log(x)+b)*((log(x)

[R] Hi

2017-06-05 Thread Moshe Kelner
Hi , I'm asking for a way to compute the integral of: function(x) {x*(log(x)+b)*((log(x)+b)^(a-1)-b^(a-1))/(a-1)*(b^(a-1)} When a and b are between 1 to 10 and X is the integral parameter between 0 to 1 ' Thanks, Moshe This e-mail message may contain confidential, commercial and privileged

[R] R] Error message "cs_lu(A) failed: near-singular A (or out of memory)"

2017-06-05 Thread Keilhacker, Michael
Dear Arne, thank you very much upfront for your time that you invest in answering my question. I'm using your systemfit R package to analyze if companies risk appetite has a relationship to their performance and how it evolves over time. We collected data for ca. 80 companies, from 6 segment

[R] issues in plm using random effect model

2017-06-05 Thread Kailas Gokhale
Dear Sir, Thank you for accepting my request for registration on this site. I am trying to solve panel data problems using plm package , but while suing random effect model i am getting following messege saying " Warning message:In sqrt(sigma2) : NaNs produced " In some other cases i am getting