In a post by @vdesai he/she explained a kalman filter model (See the full post here: Unsmoothing returns). The model described below is taken from there.
State-Space model and formulas
I've looked at the FKF package in R but I've not been able to make sense of how the parameters in the model translates to the inputs in fkf.
Note that I only have the observations (y(t)) and the index return (R,I(t)). I would like to know the true returns (z(t)) and the weigths (w0,w1,...,wp)