search for: yerr

Displaying 2 results from an estimated 2 matches for "yerr".

Did you mean: err
2018 Jan 20
1
Specification: Bi variate minimization problem
...pose that we choose a value P so that. Any X <= P is understood as belonging to group X while any Y > P is understood as belonging to group Y. now any values of X > P or of Y <= P are wrongly understood as belonging to Y nad X effectively. Hence we have Xerr -- > Sum( X >P) and Yerror --> Sum(Y<=P). I want to solve this bivariate optimization problem where I want to at the same time minimize the error of X and Y for a given P. Ultimately the target is to optimize the value of P so that the errors of both X and Y are optimized. More specifically, the optimal solution is...
2006 Aug 02
0
Trying to use segmented in a function
...regression: this package seems to be the one that most people use for this, as far as I can see. Since I want to run some simulations, I'm trying to write functions that use segmented, and it's driving me mad. Here's a simple example: simdata<-function (Ns=200,Xmean=20,Xsd=5,SdYerr=0.5,Yint=0,threshold=20,slopebelow=0.5,slo peabove=1) { Xs<-rnorm(Ns,Xmean,Xsd) Yerr<-rnorm(Ns,0,SdYerr) D<-ifelse(Xs<=threshold,0,1) XminusX0<-Xs-threshold Ys<-Yint+slopebelow*Xs+slopeabove*XminusX0*D+Yerr plot(Xs,Ys) linmod<-lm(Ys~Xs) segment<-segmented(linmod,...