Re: [R] Failure in predicting parameters

2021-03-17 Thread Luigi Marongiu
It worked. I re-written the equation as: ``` rutledge_param <- function(p, x, y) ( (p$M / ( 1 + exp(-(x-p$m)/p$s)) ) + p$B ) - y ``` and used Desmos to estimate the slope, so: ``` estim <- nls.lm(par = list(m = halfCycle, s = 2.77, M = MaxFluo, B = high[1]), fn = rutledge_param, x = 1:4

Re: [R] modelling 4-parameter curve in R does not match data - how to proceed?

2021-03-17 Thread Luigi Marongiu
Oh, I got it! I was sending the fluorescence instead of the cycles x. Thank you ``` desmos <- rutledge(list(half_fluorescence = 27.1102, slope = 2.76798, max_fluorescence = 11839.8, back_fluorescence = -138.864) , 1:45) ``` On Wed, Mar 17, 2021 at 8:58 PM Duncan Murdoch w

Re: [R] help

2021-03-17 Thread hatice gürdil
Thank you so much I thought that ncol is for dimension . ncol= 2, 2x2 matris for 2 dimension ncol= 3, 3x3 matris for 3 dimention I have to work a little more considering what you said. Cheers, Hatice Gürdil. Bill Dunlap , 16 Mar 2021 Sal, 21:09 tarihinde şunu yazdı: > The length of the mean ve

[R] [R-pkgs] domir: Tools to Support Relative Importance Analysis

2021-03-17 Thread Joseph Luchman
Hello All, I am pleased to announce that {domir} is now available on CRAN. {domir} aims to provide broadly applicable tools for the relative importance analysis of facets of statistical models and machine learning algorithms. The focus for this initial release is on Dominance Analysis/Sha

[R] [R-pkgs] Splinets

2021-03-17 Thread Krzysztof Podgórski
Splinets -- a package with an efficient B-spline orthogonalization suitable for sparse functional data analysis. See also: Liu, X., Nassar, H., Podgórski, K. (2019) "Splinets – efficient orthonormalization of the B-splines." . Podgórski, K. (2021) "Splinets – splines through the Taylor expan

[R] [R-pkgs] {miclust} Multiple imputation & cluster analysis

2021-03-17 Thread Jose Barrera
Dear all, Want to perform cluster analysis but you have missing data? Following researchers' suggestion, our R package miclust is now on CRAN: https://CRAN.R-project.org/package=miclust miclust implements a framework to integrate multiple imputed data sets due to missing data in cluster analysis

Re: [R] modelling 4-parameter curve in R does not match data - how to proceed?

2021-03-17 Thread Duncan Murdoch
On 17/03/2021 12:37 p.m., Luigi Marongiu wrote: sorry, I don't get it... Modify your rutledge function to print x, and you'll see the values of high printed. x should be 1:45. Duncan Murdoch On Wed, Mar 17, 2021 at 2:35 PM Duncan Murdoch wrote: On 17/03/2021 6:59 a.m., Luigi Marongiu

Re: [R] library(hms)

2021-03-17 Thread John Fox
Dear Greg, As I explained to you in a private email, and as others have told you, there is no Install.libraries() command, nor is there an install.libraries(0 command, but there is an install.packages() command. So install.packages("hms") should work, on a Mac or on any other internet-connec

Re: [R] library(hms)

2021-03-17 Thread Gregory Coats via R-help
It appears that install.libraries(“hms”) is unsuccessful, but that install.packages(“hms”) is successful. install.packages("lubridate") downloaded 1.5 MB install.packages("hms") downloaded 95 KB install.packages("data.table") downloaded 2.2 MB Greg > On Mar 17, 2021, at 1:07 PM, Gregory Coats via

Re: [R] library(hms)

2021-03-17 Thread Caitlin Gibbons
Your opening quote looks slightly different from the closing quote. This probably explains why you received the error message regarding “unexpected input”. I hope this helps. > On Mar 17, 2021, at 10:08 AM, Gregory Coats via R-help > wrote: > > On my MacBook, I do not have, and do not kn

Re: [R] [External] unanticipated axis labels

2021-03-17 Thread Richard M. Heiberger
exactly! a warning when running would be very helpful. Thank you. Rich > On Mar 17, 2021, at 02:41, Deepayan Sarkar wrote: > > On Tue, Mar 16, 2021 at 11:35 PM Richard M. Heiberger wrote: >> >> library(lattice) >> library(latticeExtra) >> >> barchart(matrix(c(1:6, 5:6)), main="unanticipated

Re: [R] library(hms)

2021-03-17 Thread Caitlin Gibbons
Maybe you used the wrong quotes with the parentheses? > On Mar 17, 2021, at 10:08 AM, Gregory Coats via R-help > wrote: > > On my MacBook, I do not have, and do not know how to install, library(hms). > Greg Coats > >> library(hms) > Error in library(hms) : there is no package called ‘hms’ >>

Re: [R] library(hms)

2021-03-17 Thread Mark Leeds
Hi: install.packages("hms") should work if you have R installed along with an internet connection. When you do above, if you get a message about other packages needing to be installed, then use install.packages("hms", dependencies = TRUE). On Wed, Mar 17, 2021 at 1:08 PM Gregory Coats via R-

Re: [R] library(hms)

2021-03-17 Thread Bill Dunlap
install.packages("hms") A 'library' is a directory (aka folder) that contains installed 'packages'. I.e., one installs packages into a library, but one does not install a library. -Bill On Wed, Mar 17, 2021 at 10:08 AM Gregory Coats via R-help wrote: > > On my MacBook, I do not have, and do no

[R] library(hms)

2021-03-17 Thread Gregory Coats via R-help
On my MacBook, I do not have, and do not know how to install, library(hms). Greg Coats > library(hms) Error in library(hms) : there is no package called ‘hms’ > Install.libraries(“hms”) Error: unexpected input in "Install.libraries(“" > [[alternative HTML version deleted]] __

Re: [R] modelling 4-parameter curve in R does not match data - how to proceed?

2021-03-17 Thread Luigi Marongiu
sorry, I don't get it... On Wed, Mar 17, 2021 at 2:35 PM Duncan Murdoch wrote: > > On 17/03/2021 6:59 a.m., Luigi Marongiu wrote: > > yes, but in `rutledge` I model y as `y = (M / ( 1 + exp(-(x-m)/s)) ) + > > B`, with x being 1:45. Isn't that the equivalent of what I fed Desmos > > with? Tx > > N

Re: [R] modelling 4-parameter curve in R does not match data - how to proceed?

2021-03-17 Thread Duncan Murdoch
On 17/03/2021 6:59 a.m., Luigi Marongiu wrote: yes, but in `rutledge` I model y as `y = (M / ( 1 + exp(-(x-m)/s)) ) + B`, with x being 1:45. Isn't that the equivalent of what I fed Desmos with? Tx No, it's not. Duncan Murdoch On Wed, Mar 17, 2021 at 11:31 AM Duncan Murdoch wrote: On 17/0

Re: [R] Problem with the str_replace function

2021-03-17 Thread phil
Your help is much appreciated. I now understand what my problem was and can move forward. Philip On 2021-03-17 01:19, Hervé Pagès wrote: Hi, stringr::str_replace() treats the 2nd argument ('pattern') as a regular expression and some characters have a special meaning when they are used in a r

Re: [R] modelling 4-parameter curve in R does not match data - how to proceed?

2021-03-17 Thread Luigi Marongiu
yes, but in `rutledge` I model y as `y = (M / ( 1 + exp(-(x-m)/s)) ) + B`, with x being 1:45. Isn't that the equivalent of what I fed Desmos with? Tx On Wed, Mar 17, 2021 at 11:31 AM Duncan Murdoch wrote: > > On 17/03/2021 5:41 a.m., Luigi Marongiu wrote: > > Hello, > > I have a dataset from a po

Re: [R] modelling 4-parameter curve in R does not match data - how to proceed?

2021-03-17 Thread Duncan Murdoch
On 17/03/2021 5:41 a.m., Luigi Marongiu wrote: Hello, I have a dataset from a polymerase chain reaction. I am using the equation given by Rutledge (https://pubmed.ncbi.nlm.nih.gov/15601990/) but the profile I get in R does not match the data. I ran the same thing in Desmos and instead the profile

[R] modelling 4-parameter curve in R does not match data - how to proceed?

2021-03-17 Thread Luigi Marongiu
Hello, I have a dataset from a polymerase chain reaction. I am using the equation given by Rutledge (https://pubmed.ncbi.nlm.nih.gov/15601990/) but the profile I get in R does not match the data. I ran the same thing in Desmos and instead the profile is correct (attached). Why do I not get the same

Re: [R] How to plot dates

2021-03-17 Thread PIKAL Petr
Hi install.packages("lubridate") does not work on Mac? Cheers Petr > -Original Message- > From: R-help On Behalf Of Gregory Coats > via R-help > Sent: Wednesday, March 17, 2021 1:11 AM > To: Daniel Nordlund > Cc: r-help mailing list > Subject: Re: [R] How to plot dates > > Dan, Than