Suppose $\{Y_1,\ldots,Y_n\}$ are iid uniform on $[0,\theta]$ where $\theta$ is the unknown parameter.
I'm trying to understand how to create a GMM estimator for $\theta$ and I'm not really sure how. I know I can use $E(Y-\frac{\theta}{2}) = E(Y^2 - \frac{\theta^2}{3})=0$ but once again I'm confused as to how to create an efficiently weighted GMM estimator.
Thanks!