View source: R/format_claassen.R
format_claassen | R Documentation |
format_claassen
formats DCPO data output by dcpo_setup
for use with Claassen's
Stan files for "Estimating Smooth Country-Year Panels for Public Opinion" (_Political Analysis_,
2019).
format_claassen(dcpo_data)
dcpo_data |
a data frame of survey responses generated by |
format_claassen
formats DCPO data output by dcpo_setup
for use with Claassen's
Stan files for "Estimating Smooth Country-Year Panels for Public Opinion" (_Political Analysis_,
2019). Following Claassen, it dichotomizes variables by coding responses above the midpoint of
the response scale as 1.
a list of Stan data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.