[R] constraints again
mspan at swets.nl
Tue Oct 22 11:54:47 CEST 2002
I would like to fit the following function on my data.
out.nls<-nls(z ~ p1+
which relates the z-score on a IQ subtest to Age (AgeS) and Raw Score (dat).
Allthough the dataset is quite large, older subjects usually do not provide
large 'raw scores', and young subjects do not provide low scores. This leads
to incorrect fits for large raw scores for older subjects and low raw scores
for young subjects. I would like to constrain the fit so, that the 'link'
between raw score and z-score for all ages is monotonical. Can anybody
direct me to an answer?
Looking through FAQ and list, I realize that there is no 'easy way'. So
presumably I am looking for directions...
Mark M. Span
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help