search for: startparams

Displaying 3 results from an estimated 3 matches for "startparams".

2009 Jul 26
1
Non-Linear Regression with two Predictors
Hello there, I am using nls the first time for a non-linear regression with a logistic growth function: startparam <- c(alpha=3e+07,beta=4000,gamma=2) fit <- nls(dataset$V2~(( alpha / ( 1 + exp( beta - gamma * dataset$V1 ) ) ) ),data=dataset,start=startparam) Everything works fine and i get good results. Now I would like to improve the results using my DUMMY Variable (dataset$V6) the
2012 Dec 07
1
Error using constrOptim in constraint definition
Hello, I'm trying to run constrOptim. It returns to me an error about the fact that constraints arguments (ui and ci) are non compatibles: > optout= constrOptim(startparams, f=ImpulseSS, grad=grImpulse, ui=UI, ci=CI, data=gexp[k,], t=t) Error in ui %*% theta : non-conformable arguments I would like to point out that I can calculate that product in the command line: > UI %*% startparams [,1] [1,] 2.297217e+05 [2,] 1.699765e+05 [3,] 2.037806e+...
2012 Nov 20
0
double gaussian with mixdist: what's wrong?
Dear all, I am trying to fit a double gaussian to some data using the mixdist package: --- begin code --- ? library(mixdist) ? time <- seq(673,723) ??counts <- c(3,12,8,12,18,24,39,48,64,88,101,132,198,253,331,419,563,781,1134,1423,1842,2505,374,6099,9343,13009, ? ? ? ? ? ? ? ? ? ?15097,13712,9969,6785,4742,3626,3794,4737,5494,5656,4806,3474,2165,1290,799,431,213,137,66,57,41,35,27,27,27) ?