I want to know whether my interpretation of GLM weights is correct.
On R documentation of GLM it says that
Non-NULL weights can be used to indicate that different observations have different dispersions (with the values in weights being inversely proportional to the dispersions); or equivalently, when the elements of weights are positive integers , that each response is the mean of unit-weight observations.
I would like to know if I could therefore say that using weights changes the log-likelihood function which is minimized in the following way \begin{align*} \sum_{i} \log f(X_i) \to \sum_{i} w_i \log f(X_i) \end{align*}
If yes does this only hold if the weights are positive integers?
EDIT: If not how can I modify the log likelihood such that this holds? \begin{align*} \sum_{i} \log f(X_i) \to \sum_{i} w_i \log f(X_i) \end{align*}