Comparing the percentage obtained from 2 groups with different sample size I'm trying to compare the increase in percentage of $X$ variable in 2000 and in 2012, so I calculated the percentage of the $X$ variable in 2000 and in 2012 and subtracted the difference. My question is if the sample size is different is it still correct to compare the percentage? For example:




Variable X
Count in 2000
Count in 2012




A
89
114


B
9
33


Total sample size
98
147




So is it correct to say that there is an increase in $A$ even though the sample size of 2012 is higher?
Can you please help  me to understand this?
Edits:
The 2 data sets are for 2 different cohorts, one before 2000 and other in 2012. So the numbers are different because it represents all the patients at those periods. So I'm comparing the change of the percentage by counting how many of $A$ at the variable $X$ in 2000 and divide it by the total amount of the variable $X$  and times it by 100 to get the percentage. The I do the same thing for $A$ in 2012 to get the percentage and then subtract the difference. Note: Variable $X$ is categorical variable (for example: $X$ = A,A,A,A,A,B,A,T,A,B).
% of A in 2000 = Counts of A in 2000/ total counts of variable X in 2000 (A +B)*100
% of A in 2012 = Counts of A in 2012/ total counts of variable X in 2012 (A +B)*100 (A +B)*100


My concern is the difference in percentage that I'm getting is related to real increase in $A$ in 2012 or it is just because of the data set in 2012 is larger? How can I correct for this difference? Can I do a proportion test to check if this increase is real? The null hypothesis for the proportion test would be:
Null= There is no increase in $A$
Alternative= There is an increase in $A$.
Is it correct to use the proportion test to check if the difference is real and not related to the differences in sample size?
Please,any help would be very appreciated.

You can compare the difference in the proportions
$$d = \frac{x_1}{n_1} - \frac{x_2}{n_2} = \frac{89}{98} - \frac{114}{147} \approx 0.133$$
and compute an estimate for the error of it by using the variance of a binomial proportion
$$Var[\hat{p}] =\frac{p(1-p)}{n}$$
which gives
$$\begin{array}{}
SD[\hat{p}_1 - \hat{p}_2] &=& \sqrt{\frac{p_1(1-p_1)}{n} + \frac{p_2(1-p_2)}{n}} \\ 
&\approx& \sqrt{\frac{\hat p_1(1-\hat p_1)}{n} + \frac{\hat p_2(1-\hat p_2)}{n}} \\
&\approx& \sqrt{\frac{(89/98)(9/98)}{98} + \frac{(114/147)(33/147)}{147}}\\
&\approx & 0.045
\end{array}$$
So the difference $d$ is roughly 3 standard errors.

The numbers in the samples 89/98 and 114/147 are different and indicate that the populations from which they were sampled. But this does not need to mean that the populations from which were sampled are different. It can also have been the sampling that differed or made the difference appear unlikely large.
Also relevant is how the measurements are taken. Why are the numbers different and what do the ratios mean? Are the samples representative of the underlying populations? Was the sampling the same?
