You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ceteris paribus, adding the ngroup parameter to the stm function appears to modify the gamma matrix. From my understanding of the documentation, it could be normal and we should not expect that the model will converge to the same solution than a model without this parameter.
However, while the beta matrix and the global topic prevalence remain broadly similar between models, the gamma matrix is not only different but significantly so. It appears incorrect: the top documents associated with each topic do not seem to be related to the topic itself.
I tested this with my own data, and a quick check using the sample data from the stm package suggests a similar issue.
The text was updated successfully, but these errors were encountered:
tdelcey
changed the title
The parameter ngroup of stm() significantly modify the matrix gamma
The parameter ngroup of stm() significantly modify the gamma matrix
Sep 16, 2024
Hi,
Ceteris paribus, adding the
ngroup
parameter to thestm
function appears to modify the gamma matrix. From my understanding of the documentation, it could be normal and we should not expect that the model will converge to the same solution than a model without this parameter.However, while the beta matrix and the global topic prevalence remain broadly similar between models, the gamma matrix is not only different but significantly so. It appears incorrect: the top documents associated with each topic do not seem to be related to the topic itself.
I tested this with my own data, and a quick check using the sample data from the stm package suggests a similar issue.
Below is a simple example:
The text was updated successfully, but these errors were encountered: