I am trying to write a constrained function of coefficients in a mixed frequency model. The mixed frequency model looks like below:enter image description here
briefly speaking, the dependent variable Y is a low-frequency variable that is observed once each year, and the independent variable X is a high-frequency variable that is observed each day, so each Y is matched with 365 X observations. I want to write the constraint function of coefficient beta as: beta is a function of other high-frequency variables: Beta = theta1Z + theta2W. Do anybody know how to write above function in R? Thanks a lot!