[R] Comparing Data and Simulation

Koen van Rhee koenvanrhee at me.com
Tue Dec 23 16:36:11 CET 2008


Hello,

I've got a function f(x) with this function. For x in -2 : 2 i've 
generated a vector y with function values. There is also a data set and 
I've constructed an estimator which should find values similar to y.

My question is, what is the best way to compare these vectors?

A simple example y=1 and a sample size of 10.

y = [1] 1 1 1 1 1 1 1 1 1 1
est =  [1] -2.34465214 -1.85665524 -1.36865834 -0.88066144 -0.39266455  
0.09533235  0.58332925  1.07132615  1.55932305  2.04731995

Kind regards,
Koen



More information about the R-help mailing list