similar to: making self-starting function for nls

Displaying 20 results from an estimated 700 matches similar to: "making self-starting function for nls"

2005 Oct 26
0
self starting function for nonlinear least squares.
Following on my posting of this morning, concerning a problem that I am having constructing a self-starting function for use with nls (and eventually with nlsList and nlme), the following is the self-starting function called NRhyperbola: > NRhyperbola function (Irr,theta,Am,alpha,Rd) { # Am is the maximum gross photosynthetic rate # Rd is the dark resiration rate (positive value) #
2005 Oct 26
1
help with a self-starting function in nonlinear least squares regression.
Hello. I am having a problem setting up a self-starting function for use in nonlinear regression (and eventually in the mixed model version). The function is a non-rectangular hyperbola - called "NRhyperbola" - which is used for fitting leaf photosynthetic rate to light intensity. It has one independent variable (Irr) and four parameters (theta, Am, alpha and Rd). I have created this
2005 Sep 07
1
summary of problem with mCall function.
Last week I posted a question concerning the mCall function, which is used to create self-starting functions and is described in the book by Pinheiro, J.C. and Bates, D.M. (Mixed-effects models in S and S-PLUS). On page 345 one finds the following call: xy<-sortedXyData(mCall[["x"]], LHS,data) It is necessary to replace the "x" in the call to mCall by the actual
2008 Aug 29
1
nls() fails on a simple exponential fit, when lm() gets it right?
Dear R-help, Here's a simple example of nonlinear curve fitting where nls seems to get the answer wrong on a very simple exponential fit (my R version 2.7.2). Look at this code below for a very basic curve fit using nls to fit to (a) a logarithmic and (b) an exponential curve. I did the fits using self-start functions and I compared the results with a more simple fit using a straight lm()
2006 May 24
1
problem-nlme
Hi, I have great problems with my work in R. I look for to model the growth of fish. I have "Longitudinal data", a serie of repeated measures for each individual. Using the corresponding packages "nlme" in R. I treat to fit to the data different growth functions, wich were entered by me. Unfortunately for no it was arrived at the convergence, several error messages appeared. I
2005 Nov 09
1
strategies to obtain convergence using nlme
Hello. I am working on an analysis involving the nonlinear mixed model function (nlme) in R. The data consist of measures of carbon fixation by leaves as a function of light intensity and the parametric function (standard in this area because it has a biological interpretation) is a non-rectangular hyperbola. I cannot get the nonlinear mixed model (nlme) function to converge cleanly. I am
2005 Oct 27
1
syntax of nlme with nesting
This may appear too elementary to some on this list, but not to me. My apologies if this is the case. I have mastered the lme function but the nlme function has me stumped. I am attempting to fit a nonlinear mixed model with 4 levels of nesting. I am getting a cryptic error message and do not know what is wrong with the syntax of the call. This is the call: >
2004 Apr 01
1
nls function
Hello. I am trying to fit a non-rectangular hyperbola function to data of photosynthetic rate vs. light intensity. There are 4 parameters that have to be estimated. I find the nls function very difficult to use because it often fails to converge and then gives out cryptic error messages. I have tried playing with the control parameters but this does not always help. Is there another
2002 Jul 19
1
selfStart function problem
Hello, list, I am making a self-starting nonlinear function to model the relation of tree height (H) and diameter (D) in a forest stand. The function I am trying is H=a*exp[b*(D+5.8)^(-c)]. To calculate the initial estimates of the parameters, I linearized the formula by taking logarithms and fixing the parameter c=1. Then I calculated the initial estimates of a and b using lm() on the
2007 Apr 20
1
nlme trouble
I am not certain how nlme works so I followed an example from the web ( http://www.menne-biomed.de/gastempt/gastempt1.html). I was able to successfully reproduce the example. However, when I modified my the example to use my data and with my formula, I get a set of errors having to do with the log() function. I get 10 of them (all exactly the same) and there are 10 levels in my factor variable.
2004 Oct 04
3
(off topic) article on advantages/disadvantages of types of SS?
Hello. Please excuse this off-topic request, but I know that the question has been debated in summary form on this list a number of times. I would find a paper that lays out the advantages and disadvantages of using different types of SS in the context of unbalanced data in ANOVA, regression and ANCOVA, especially including the use of different types of contrasts and the meaning of the
2005 Nov 09
0
source of "susbcript out of bounds error" in nmle
A few days ago I posted a question to this discussion group concerning to origin of an error message < subscript out of bounds > while using the nonlinear mixed model (nlme) function in R with a self-starting function. Thanks for those who responded. This posting is to explain what (I think) it causing the error. Pinheiro & Bates (2000, pages 342-347) describe how to construct a
2003 Nov 04
3
help with lme()
Hello. I am trying to determine whether I should be using ML or REML methods to estimate a linear mixed model. In the book by Pinheiro & Bates (Mixed-effects models in S and S-PLUS, page 76) they state that one difference between REML and ML is that « LME models with different fixed-effects structures fit using REML cannot be compared on the basis of their restricted likelihoods. In
2003 Dec 11
2
typeIII SS for lme?
To avoid angry replies, let me first say that I know that the use of Type III sums of squares is controversial, and that some statisticians recommend instead that significance be judged using the non-marginal terms in the ANOVA. However, given that type III SS is also demanded by some… is there a function (equivalent to drop1 for lm) to obtain type III sums of squares for mixed models using the
2004 Apr 26
2
mixed model with binomial link?
Hello. I have to fit a mixed model from a repeated measures split-plot experiment in which the response variable is binary. This requires a generalised linear mixed model in which I can specify a binomial distribution. I can’t find the appropriate package in R. I have looked at glmmML, but it doesn’t seem to allow any mixed structure beyond a simple 2-level one. Can anyone point me to the
2004 Sep 30
1
histograms with more than one variable
Hello. I want to plot the distribution of a continuous variable (y) in each of two groups on the same graph as histograms. I suppose one could call this a 2-d histogram? Can this be done in R? Here is a typical data.set: y group 1.2 1 3.3 1 2.4 2 5.7 1 0.2 2 etc. Bill Shipley Subject Matter Editor, Ecology North American Editor, Annals of
2004 Oct 01
3
controlling colour in Trellis histogram
Hello. I am sorry for posting a (seemingly) simple question, but I have just spent 2 hours trying to find the answer, without success. I want to make a histogram with conditioning on a factor, using Trellis graphics. However, I do not want any colours (only black and white) either in the histograms or in the strip. There must be some simple argument but I can’t find it. Here is my code so
2005 Feb 15
1
shrinkage estimates in lme
Hello. Slope estimates in lme are shrinkage estimates which pull the OLS slope estimates towards the population estimates, the degree of which depends on the group sample size and the distance between the group-based estimate and the overall population estimate. Although these shrinkage estimates as said to be more precise with respect to the true values, they are also biased. So there is a
2008 Aug 18
1
"nested" getInitial calls; variable scoping problems
Hi All, Another nls related problem (for background, I'm migrating a complicated modelling package from S-plus to R). Below I've reduced this to the minimum necessary to demonstrate my problem (I think); the real situation is more complicated. Two similar selfStart functions, ssA and ssB. The 'initial' function for ssB modifies its arguments a little and then calls getInital
2003 Oct 28
1
setting up complicated ANOVA in R
Hello. I am about to do a rather complicated analysis and am not sure how to do it. The experiment has a split-plot design and also repeated measures. Both of these complications require one to define an error term and it seems that one cannot specify two such terms. The split-plot command is: aov(y~covariates +A*B+Error(C), data=) where A and B are the fixed effects and C is the