Hi, I am producing some very basic contTables and want to be able to put them into a document without having to screenshot but so that they still format properly. I doesn't need to be flashy at all I just want to export it!
My code for the tables looks like this:
contTables(bes19,
rows=euRefpastVote,
cols=voted17,
pcRow =TRUE,
exp=TRUE)
It produces this table
Contingency Tables
────────────────────────────────────────────────────────────────────────────────────
euRefpastVote No, did not vote Yes, voted Total
────────────────────────────────────────────────────────────────────────────────────
Stay/remain in the EU Observed 161 1983 2144
Expected 185 1959 2144
% within row 7.5 92.5 100.0
Leave the EU Observed 163 1445 1608
Expected 139 1469 1608
% within row 10.1 89.9 100.0
Total Observed 324 3428 3752
Expected 324 3428 3752
% within row 8.6 91.4 100.0
────────────────────────────────────────────────────────────────────────────────────
χ² Tests
──────────────────────────────
Value df p
──────────────────────────────
χ² 8.04 1 0.005
N 3752
──────────────────────────────
Thanks in advance!