Get cheap starting values for a Wordfish model

initialize.urfish(tY)

Arguments

tY

a document by word matrix of counts

Value

List with elements:

alpha

starting values of alpha parameters

psi

starting values of psi parameters

beta

starting values of beta parameters

theta

starting values for document positions

Details

This function is only called by model fitting routines and does therefore not take a wfm classes. tY is assumed to be in document by term form.

In the poisson form of the model incidental parameters (alpha) are set to log(rowmeans/rowmeans[1]). intercept (psi) values are set to log(colmeans) These are subtracted from a the data matrix, which is logged and decomposed by SVD. Word slope (beta) and document position (theta) are estimated by rescaling SVD output.

References

This is substantially the method used by Slapin and Proksch's original code.

Author

Will Lowe