Re: [R] Nonlinear logistic regression fitting

2020-07-29 Thread Sebastien Bihorel via R-help
timize it. With a nonlinear model, you lose some of that, and I'd suggest directly optimizing it. Duncan Murdoch On 29/07/2020 8:56 a.m., Sebastien Bihorel via R-help wrote: > Thank your, Pr. Nash, for your perspective on the issue. > > Here is an example of binary data/response (resp) t

Re: [R] Nonlinear logistic regression fitting

2020-07-29 Thread Sebastien Bihorel via R-help
ar model, you lose some of that, and I'd suggest directly optimizing it. Duncan Murdoch On 29/07/2020 8:56 a.m., Sebastien Bihorel via R-help wrote: > Thank your, Pr. Nash, for your perspective on the issue. > > Here is an example of binary data/response (resp) that were simulated a

Re: [R] Nonlinear logistic regression fitting

2020-07-29 Thread Sebastien Bihorel via R-help
ings are very badly scaled. Another posting suggests an example problem i.e., some data and a model, though you also need the loss function (e.g., Max likelihood, weights, etc.). Do post some data and functions so we can provide more focussed advice. JN On 2020-07-28 10:13 a.m., Sebastien Bihorel vi

Re: [R] Nonlinear logistic regression fitting

2020-07-28 Thread Sebastien Bihorel via R-help
tps://davetang.org/muse/2013/05/17/fitting-a-michaelis-mentens-curve-using/ [2] http://rforbiochemists.blogspot.com/2015/05/plotting-and-fitting-enzymology-data.html Hope this helps, Rui Barradas �s 15:13 de 28/07/2020, Sebastien Bihorel via R-help escreveu: > Hi > > I need to fit a lo

Re: [R] Nonlinear logistic regression fitting

2020-07-28 Thread Sebastien Bihorel via R-help
ley Breathed in his "Bloom County" comic strip ) On Tue, Jul 28, 2020 at 7:25 AM Sebastien Bihorel via R-help mailto:r-help@r-project.org>> wrote: Hi I need to fit a logistic regression model using a saturable Michaelis-Menten function of my predictor x. The likelihood could be e

Re: [R] Nonlinear logistic regression fitting

2020-07-28 Thread Sebastien Bihorel via R-help
and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Jul 28, 2020 at 7:25 AM Sebastien Bihorel via R-help mailto:r-help@r-project.org>> wrote: Hi I need to fit a logistic regression model using a saturable Michaelis-Menten

[R] Nonlinear logistic regression fitting

2020-07-28 Thread Sebastien Bihorel via R-help
Hi I need to fit a logistic regression model using a saturable Michaelis-Menten function of my predictor x. The likelihood could be expressed as: L = intercept + emax * x / (EC50+x) Which I guess could be expressed as the following R model ~ emax*x/(ec50+x) As far as I know (please, correct

Re: [R] Creating file from raw connection

2020-05-29 Thread Sebastien Bihorel via R-help
Thanks Duncan From: Duncan Murdoch Sent: Friday, May 29, 2020 15:36 To: Sebastien Bihorel ; r-help@r-project.org Subject: Re: [R] Creating file from raw connection   On 29/05/2020 3:00 p.m., Sebastien Bihorel via R-help wrote: > Hi, > > Let's say I can extract the content of

[R] Creating file from raw content

2020-05-29 Thread Sebastien Bihorel via R-help
Hi, Let's say I can extract the content of an Excel .xlsx file stored in a database and store it as raw content in an R object. What would be the proper way to "create" a .xlsx file and "transfer" the content of this obj into it? I took the example of an Excel file, but my question would extend

[R] Creating file from raw connection

2020-05-29 Thread Sebastien Bihorel via R-help
Hi, Let's say I can extract the content of an Excel .xlsx file stored in a database and store it as raw content in an R object. What would be the proper way to "create" a .xlsx file and "transfer" the content of this obj into it? I took the example of an Excel file, but my question would extend

Re: [R] POSIX system oddities

2020-03-29 Thread Sebastien Bihorel via R-help
h shaves off 1 hour. Peter On Sun, Mar 29, 2020 at 5:03 PM Sebastien Bihorel via R-help mailto:r-help@r-project.org>> wrote: Hi, Why is there less number of seconds on 03/10/2019 in the internal POSIX system? The difference between the previous or the next day eems to be exactly 1 hour. I

[R] POSIX system oddities

2020-03-29 Thread Sebastien Bihorel via R-help
Hi, Why is there less number of seconds on 03/10/2019 in the internal POSIX system? The difference between the previous or the next day eems to be exactly 1 hour. I could not find anything in the manuals on CRAN. > dates <- as.POSIXct(sprintf('03/%s/2019',9:12), format = '%m/%d/%Y') > dates [1]

Re: [R] Can file size affect how na.strings operates in a read.table call?

2019-11-14 Thread Sebastien Bihorel via R-help
> r-help@r-project.org<mailto:r-help@r-project.org> > mailto:r-help@r-project.org>> > Subject: Re: [R] Can file size affect how na.strings operates in a > read.table call? > Check for extraneous spaces. You may need more variations of the na.strings. > > On November 14, 2019

Re: [R] Can file size affect how na.strings operates in a read.table call?

2019-11-14 Thread Sebastien Bihorel via R-help
Sebastien Bihorel via R-help ; r-help@r-project.org Subject: Re: [R] Can file size affect how na.strings operates in a read.table call? Check for extraneous spaces. You may need more variations of the na.strings. On November 14, 2019 7:40:42 AM PST, Sebastien Bihorel via R-help wrote: >

[R] Can file size affect how na.strings operates in a read.table call?

2019-11-14 Thread Sebastien Bihorel via R-help
Hi, I have this generic function to read ASCII data files. It is essentially a wrapper around the read.table function. My function is used in a large variety of situations and has no a priori knowledge about the data file it is asked to read. Nothing is known about file size, variable types, va

Re: [R] read.table and NaN

2019-10-25 Thread Sebastien Bihorel via R-help
NaN 2 NA 2 > class(tmp[,1]) [1] "numeric" > class(tmp[,2]) [1] "character" > tmp[,2] [1] "NaN" "2" Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley

Re: [R] read.table and NaN

2019-10-24 Thread Sebastien Bihorel via R-help
ot;2" 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 Wed, Oct 23, 2019 at 6:31 PM Sebastien Bihorel via R-help mailto:r-help@r-proje

[R] read.table and NaN

2019-10-23 Thread Sebastien Bihorel via R-help
Hi, Is there a way to make read.table consider NaN as a string of characters rather than the internal NaN? Changing the na.strings argument does not seems to have any effect on how R interprets the NaN string (while is does not the the NA string) con <- textConnection(object = 'A,B\n1,NaN\nNA,