My question is in the title. I have two variables ai_mh_Y2 and ai_mh_Y4, the ai_mh_Y2 variable asked "Are you willing to use artificial intelligence for mental health, (Yes/No)", in Wave 2 of a longitudinal survey. The ai_mh_Y4 variable is the follow-up, "Are you willing to use artificial intelligence for mental health, (Yes/No)" in Wave 4. Is there a test to measure the effect size for the matched samples? I know of McNemar's test of marginal homogenity but I don't think it's equivalent to calculating an effect size. Any advice would be appreciated. I included the frequency distributions of both variables and their joint frequency distribution as well, I surveyed the variables, but if a test is avaliable it doesn't have to account for the survey weights.
Code:
. svy: tabulate ai_mh_Y2, obs percent format(%14.3gc)
(running tabulate on estimation sample)
Number of strata = 1 Number of obs = 460
Number of PSUs = 460 Population size = 466.561799
Design df = 459
----------------------------------
Would you |
be |
willing |
to use |
artificia |
l |
intellige |
nce to |
help with |
your |
mental |
hea | percentage obs
----------+-----------------------
0.No | 89.8 403
1.Yes | 10.2 57
|
Total | 100 460
----------------------------------
Key: percentage = Cell percentage
obs = Number of observations
.
. svy: tabulate ai_mh_Y4, obs percent format(%14.3gc)
(running tabulate on estimation sample)
Number of strata = 1 Number of obs = 460
Number of PSUs = 460 Population size = 466.217099
Design df = 459
----------------------------------
Would you |
be |
willing |
to use |
artificia |
l |
intellige |
nce to |
help with |
your |
mental |
hea | percentage obs
----------+-----------------------
0.No | 90.9 411
1.Yes | 9.12 49
|
Total | 100 460
----------------------------------
Key: percentage = Cell percentage
obs = Number of observations
.
.
. svy: tabulate ai_mh_Y2 ai_mh_Y4, obs percent format(%14.3gc)
(running tabulate on estimation sample)
Number of strata = 1 Number of obs = 350
Number of PSUs = 350 Population size = 351.287799
Design df = 349
-------------------------------
Would you |
be |
willing |
to use |
artificia |
l |
intellige |
nce to |Would you be willing
help with | to use artificial
your |intelligence to help
mental |with your mental hea
hea | 0.No 1.Yes Total
----------+--------------------
0.No | 90.1 3.37 93.5
| 304 13 317
|
1.Yes | 3.97 2.54 6.52
| 14 19 33
|
Total | 94.1 5.91 100
| 318 32 350
-------------------------------
Key: Cell percentage
Number of observations
Pearson:
Uncorrected chi2(1) = 48.0193
Design-based F(1, 349) = 41.7622 P = 0.0000

Comment