How to estimate a simple RBC model?

Hi, I want to estimate a simple RBC model. Is there any example useful for me to learn from?
My mod file attached. Thanks in advance!

Please have a look at

Thanks for your help!! But I also want to estimate it using empirical data.

In the example provided by Johannes, you just have to replace the generated simulated data file first_diff_data.m by a file containing the data you want to use. Other datafile formats are possible, see option datafile here.


Thanks for your help!!