Displaying 2 results from an estimated 2 matches for "trimmedvals".
2005 Jan 07
1
Help in customising the NLS function to spit out mean and SD of new fit!!
i'm coding in R(first time) for a paper my colleague is publishing.
i plotted a histogram for 6000 values. Taking the mean and sd of the midpoints i did a dnorm and got the densities.
pl<-dnorm(trimmedvals,mean=midsmean,sd=midsSD)
(now in a loop of 5 times)
i plotted these experimental values against theoretical values using
the nls function the following way.
nlsresult<-nlsModel(pl ~ 1/sqrt(2 *pi)*std)*2.71828^2/(2*std4^2)),data=answer,start=list(std4=std4,sm=sm))
in the formula mean was mid...
2005 Jan 07
0
Help in customising the NLS function to spit out mean and SD ofnew fit!!
...sing the NLS function to spit out
> mean and SD
> ofnew fit!!
>
> i'm coding in R(first time) for a paper my colleague is publishing.
> i plotted a histogram for 6000 values. Taking the mean and sd of the
> midpoints i did a dnorm and got the densities.
> pl<-dnorm(trimmedvals,mean=midsmean,sd=midsSD)
> (now in a loop of 5 times)
> i plotted these experimental values against theoretical values using
> the nls function the following way.
> nlsresult<-nlsModel(pl ~ 1/sqrt(2
> *pi)*std)*2.71828^2/(2*std4^2)),data=answer,start=list(std4=st
> d4,sm=sm...