search for: sigmoid

Displaying 20 results from an estimated 50 matches for "sigmoid".

2006 Jun 19
2
frechet distance
Hi, is there any package (or source code snippet) that will evaluate the Frechet distance for curves represented as sets of points? Searching around only threw up references to a Frechet distribution. Thanks, ------------------------------------------------------------------- Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9
2008 Nov 12
3
Fitting data to a sigmoidal curve
...rious populations at different dates, and using the size and date collected, I want to figure out the growth curve of each population. My question is: How do I fit my data to a Gompertz function in R? Thank you so much! Sarah -- View this message in context: http://www.nabble.com/Fitting-data-to-a-sigmoidal-curve-tp20466784p20466784.html Sent from the R help mailing list archive at Nabble.com.
2007 Mar 16
0
help on sigmoid curve fitting
Hi list, I was wondering how I should go about fitting a sigmoid curve to a dataset. More specifically how I estimate parameters a and b in the following equation: 1 / 1+exp(-(x-a)*b) with b the steepness of the sigmoid curve and a the shift of the center of the sigmoid curve relative to the center of your dataframe. The fit is in function of x, the location...
2004 Dec 01
1
tuning SVM's
....model <- svm(similarity ~., data = training, kernel = "radial", cost = 1, gamma = 0.04545455, epsilon = 0.1) > pred=predict(svm.model, testing) > pred[pred > .5] = 1 > pred[pred <= .5] = 0 > table(testing$similarity, pred) pred 0 1 0 27 11 1 64 69 SIGMOID: > obj = best.tune(svm, similarity ~., data = training, kernel = "sigmoid") > summary(obj) Call: best.tune(svm, similarity ~ ., data = training, kernel = "sigmoid") Parameters: SVM-Type: eps-regression SVM-Kernel: sigmoid cost: 1 gamma: 0.04...
2007 Mar 03
2
Sigmoidal fitting
I am trying to write a function that fits a sigmoid given a X and Y vector guessing the start parameters. I use nls. What I did (enclosed) seems to work well with many data points but if I want to fit small vectors like : pressure <- c(5,15,9,35,45) gas <- c(1000,2000,3000,4000,5000) it do not work. The help page says that it do no not work...
2009 Jun 17
0
nls with weights
Hi there, I don't have much experience with fitting at all and I'd like to get some advice how to use the "weights"-argument with nls correctly. I have created some data with a sigmoidal curve shape. Each y-Value was generated by the mean of three values. A standard deviation was calculated too. Now, I'd like to weight the data points respective to its standard deviation. If this is very high, the datapoint should be considered less important than a datapoint with a low...
2010 Feb 17
0
Help with sigmoidal quasi-poisson regression using glm and gnm functions
Hi everyone, I'm trying to perform the following regressions in order to compare linear vs. sigmoidal fit of the relationship between my dependent variable (y) and one explaining parameter (x2), both including the confounding effects of a third variable (x1): quasi-pois-lin <- glm(y ~ x1 + x2, family = quasipoisson(link="identity"), data=fit) quasi-pois-sig <- gnm(y ~ x1 + Mult(1...
2005 Apr 11
1
glm family=binomial logistic sigmoid curve problem
I'm trying to plot an extrapolated logistic sigmoid curve using glm(..., family=binomial) as follows, but neither the fitted() points or the predict()ed curve are plotting correctly: > year <- c(2003+(6/12), 2004+(2/12), 2004+(10/12), 2005+(4/12)) > percent <- c(0.31, 0.43, 0.47, 0.50) > plot(year, percent, xlim=c(2003, 2007), yli...
2003 Sep 30
2
non-linear trends in kriging model
Hi I am struggling to fit a non-linear trend using the likfit function in geoR. Specifically I want a sigmoidal function, something like SSfpl in the nls package to fit the trend. But it seems trend.spatial in geoR only works with lm or glm type models. Any ideas how I can specify the model to calculate the kriging parameters using REML, including the parameters of a sigmoidal trend function (such as SSf...
2011 Aug 17
1
Interpreting parameters of sigmoid fct
Dear list, I'm trying to fit a chapman-richards equation to my data, only I cannot interpret the parameters a, b and d. I know that the parameter b denotes the asymptote, but for the others I couldn't figure out. But I do need to know this in order to set my starting values. Here's the model: modPoplar<- nls(Diameter ~ d*(1-exp(-b *Age))^a ,start=list(a=20,b=0.9,d=33)) I attached
2008 Aug 21
5
psychometric functions
Hi, I want to fit some psychophysical data with cumulative gaussians. There is quite a convenient toolbox for matlab called 'psignifit' (formerly known as 'psychofit'). It allows the lower bound of the sigmoid to vary slightly from zero, aswell as the upper bound to vary from one. with these two free parameters, the fitted function is less sensitive to noisy data and outliers. Apart from advertising this toolbox I want to ask for possibilities in R to fit psychometric functions, as I would rather use R t...
2009 Jun 21
2
Help on qpcR package
...lowing object(s) are masked from package:plotrix : plotCI The following object(s) are masked from package:stats : lowess 'qpcR' has been loaded. Please cite R and the following if used for a publication: Spiess AN, Feig C, Ritz Highly accurate sigmoidal fitting of real-time PCR data by introducing a parameter for asymmetry. BMC Bioinformatics 2008, 29:221 or Ritz C, Spiess AN. qpcR: an R package for sigmoidal model selection in quantitative real-time polymerase chain reaction analysis. Bioinformatics 2008, 24:1549-1551 Newest vers...
2009 Apr 26
1
Stochastic Gradient Ascent for logistic regression
...;- read.table("http://www.biostat.jhsph.edu/~ririzarr/Teaching/754/lbw.dat" , header=TRUE) attach(lbw) lbw[1:2,] low age lwt race smoke ptl ht ui ftv bwt 1 0 19 182 2 0 0 0 1 0 2523 2 0 33 155 3 0 0 0 0 3 2551 #-----R implementation of logistic regression : gradient descent ------ sigmoid<-function(z) { 1/(1 + exp(-1*z)) } X<-cbind(age,lwt, smoke, ht, ui) #y<-low my_logistic<-function(X,y) { alpha <- 0.005 n<-5 m<-189 max_iters <- 189 #number of obs ll<-0 X<-cbind(1,X) theta <-rep(0,6) # intercept and 5 regerssors #theta <- c(1.39, -0...
2018 Apr 18
2
Event-triggered change in value with a time-delay
...the parameter change? 3. Lagvalue. This might take care of the time lag component, but I am still struggling to understand (1) how lagvalue works and (2) how to integrate both the threshold and timer components. if ( D < D_T ) m<- ifelse(lagvalue(t-delay)<=0, 6.8, 10) end 4. Sigmoidal function. Someone suggested this to me earlier, but I am not sure how this would work. Is it possible to have a sigmoidal function that switches repeatedly between two states (as opposed to the characteristic S curve that transitions once from one state to another)? 5. Mathmematica has a WhenEve...
2009 Mar 11
4
R-help: grep in for loop using index - doesn't work
Hi everyone I am trying to use grep in a for loop to compare a string value. It works if I use the actual index value but when I use the for loop index, it doesn't work. Any suggestions plz. Here is the code: data <- read.table(file="Sigmoid.csv", head=FALSE, sep=","); c1 <- data$V1 c2 <- data$V2 c3 <- data$V3 c1data <- data.frame(c1); c2data <- data.frame(c2); c3data <- data.frame(c3); #this works p <- grep("QueryItem",c1data["147",],value=FALSE,fixed=FALSE) print(p) # print 1...
2011 May 19
2
recursive function
...tb/partc) erf <- sqrt(1-exp(parta)) erf } # cumulative density function cdf<- 1/2*(1+erf(x/sqrt(2))) cdf } The erf(x) produces positive values whatever the sign of x. Instead of obtaining the expected sigmoid shape of the erf() I end up with a positive values V shape. erf(x) should be negative for negative values of x. I figure I need some form of conditional statement in the above code but all my attempts at using "if" and "for" failed miserably. Clearly, I don't understand ho...
2018 Apr 18
0
Event-triggered change in value with a time-delay
...This might take care of the time lag component, but I am still > struggling to understand (1) how lagvalue works and (2) how to integrate > both the threshold and timer components. > > if ( D < D_T ) > m<- ifelse(lagvalue(t-delay)<=0, 6.8, 10) > end > > 4. Sigmoidal function. Someone suggested this to me earlier, but I am not > sure how this would work. Is it possible to have a sigmoidal function that > switches repeatedly between two states (as opposed to the characteristic S > curve that transitions once from one state to another)? > > 5. M...
2003 Apr 23
1
nls: Missing value or an Infinity produced when evaluating the model
Hi, I am trying to fit a sigmoid curve to some data with nls but I am getting into some trouble. Seems that the optimization method is getting down to some parameter estimates that make the equation unsolvable. This is an example: >growth<-data.frame(Time=c(5,7,9,11,13,15,17,19,21,23,25,27),BodyMass=c(45,85,125,210,300,48...
2007 Mar 22
1
non-linear curve fitting
Hi list, I have a little curve fitting problem. I would like to fit a sigmoid curve to my data using the following equation: f(x) = 1/(1 + exp(-(x-c)*b)) (or any other form for that matter) Where x is the distance/location within the dataframe, c is the shift of the curve across the dataframe and b is the steepness of the curve. I've been playing with glm() and glm...
2007 Nov 14
0
Help about nnet library
...f the hidden layer we have the weights as follows : b(which is I suppose the input set to one)->h1=w0 i1->h1=w1 i2->h1=w2 i3->h1=w3 i4->h1=w4 So first we make this computation : sum=w0 + i1*w1 + i2*w2 + i3*w3 + i4*w4 (the transfert function) And for computing h1 we use the classic sigmoid function : h1=1/(1+exp(-sum)). And for calculating the output we have those weights : b->o=wo0 i1->o=wo1 i2->o=wo2 i3->o=wo3 i4->o=wo4 h1->o=wo5 h2->o=wo6 h3->o=wo7 h4->o=wo8 h5->o=wo9 And the ouput is computed as follows : o=wo0+wo1*i1+wo2*i2+wo3*i3+wo4*i4+wo5*h1+...