Displaying 1 result from an estimated 1 matches for "arctg".
Did you mean:
acctg
2001 Mar 09
0
Fitting automatically empirical data
Hi,
I'm using R to find esplicit functions fitting set of data.
The data contains about 30 points, which have different weights (number
of cases represented from the point).
I plot the points, choose "by eye" a function made with exp or arctg or
polinomial and use nlm to minimaze the root mean error with correct the
weights.
For Example:
Err <- function(p)
sum((weight*(y - (p[1]+p[2]*atan(p[3]+p[4]*x))))^2)
out <- nlm(Err, p=c(1,1,1,1), hessian=T)
fp <- function(z)
out$estimate[1]+out$estimate[2]*atan(out$estimate[3]...