I am not the best to ask for tests of difference, so I don't have the complete formulas my mathematics Ph.D.s gave me to use. I can though describe how we do this. We use T-tests. But we take into account that in our case the means we are comparing are from the same sample. Sorry this is little different than yours perhaps, if your longitudinal respondents are not the same population between 2015 and 2017. If they are the same, then I think you can do it our way, but it takes two calls to calculating the standard error. ( I think you can use PROC SURVEY for this call). I think, it is formally called a 't test of statistically significant difference between dependent ( or non-independent) sample means.'
But we do publish yes/no variables like so... How many companies in Nova Scotia are saying they innovate ( yes /no), out of all companies in Nova Scotia? Lets us say, for the sake of argument the answer is half the companies in Nova Scotia are innovative. So we publish 50% in that table cell.
Now suppose we survey both small and large companies but someone wants to know are small companies more innovative than large companies? They also want to know if this difference between small and large companies is statistical significant. Is the different we observe in our survey real? Does this sound like what you are trying to do?
This paragraph simply outlines this approach. We take the SE of the two estimates small companies are 50% innovative and large companies are 75% innovative and these estimates have SEs of SE[s] ( standard error small companies) and SE[l] (standard error large companies). Then we make a formula with N[s] for small companies ( number of small company respondents) and N[l] for large companies (number of large company respondents). We work these into a formula I can't remember now but your statistician should be able to write for you, given what I am saying. Then attach that to each record/respondent record and send it to the SE calculator one more time and out comes an SE you can plug into your standard T test for difference of means.
It may be you are just trying to understand how dichotomous variables become means. May be this shows you that
(number of yes)
____________ *100 = X%. The mean is the average of X(i)s.
(number of respondents being asked question)
... View more