Abstract

For ordinal log-linear models, the estimation of the parameter reflecting the linear-by-linear measure of association has long been a topic for the analysis of dependence for contingency tables. Typically, iterative procedures (including Newton’s method) are used to determine the maximum likelihood estimate of the parameter. Recently Beh and Farver (2009, ANZJS, 51, 335–352) show by way of example three reliable and accurate noniterative techniques that can be used to estimate the parameter and extended this study by examining their reliability computationally. This paper further investigates the reliability of the non-iterative procedures when compared with Newton’s method for estimating this association parameter and considers the impact of the sample size on the estimate.

1. The Ordinal Log-Linear Model

Consider an 𝐼×𝐽 two-way contingency table, 𝑁, where the (𝑖,𝑗)th cell entry is given by 𝑛𝑖𝑗 for 𝑖=1,…,𝐼 and 𝑗=1,…,𝐽. Let the grand total of 𝑁 be 𝑛 and the matrix of joint relative frequencies be 𝑃 so that the (𝑖,𝑗)th cell entry is 𝑝𝑖𝑗=𝑛𝑖𝑗/𝑛 and βˆ‘πΌπ‘–=1βˆ‘π½π‘—=1𝑝𝑖𝑗=1. Define the 𝑖th row marginal proportion by 𝑝𝑖‒=βˆ‘π½π‘—=1𝑝𝑖𝑗, and define the 𝑗th column marginal proportion as 𝑝‒𝑗=βˆ‘πΌπ‘–=1𝑝𝑖𝑗. When the row and column variables both consist of ordered categories, the (𝑖,𝑗)th cell may be modeled by considering the following log-linear model:lnπ‘šπ‘–π‘—=πœ‡+𝛼𝑖+𝛽𝑗+ξ€·π‘’π‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€Έ.(1) The values 𝑒 and 𝑣 are the weighted average of the row and column scores assigned a priori to the categories of the row and column variables, respectively. The parameters 𝛼𝑖 and 𝛽𝑗 are constrained so that βˆ‘πΌπ‘–=1𝛼𝑖=βˆ‘π½π‘—=1𝛽𝑗=1 and are treated as nuisance parameters. Thompson [1, pages 164–197] provides a description how one may use S-PLUS, and R, to obtain the ML estimates the parameters from this model.

An alternative model that may be considered is lnπ‘šπ‘–π‘—=πœ‡+𝛼𝑖+𝛽𝑗𝑒+πœ™π‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€Έ,(2) so that the (𝑖,𝑗)th cell frequency can be estimated by π‘šπ‘–π‘—=ξ‚π›Όπ‘–Μƒπ›½π‘—ξ€Ίπœ™ξ€·π‘’expπ‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€Έξ€».(3) The parameter of interest in (3) is πœ™ and is a measure of linear-by-linear association between the variables of the table. Thus, in this paper, πœ‡, 𝛼𝑖 and ̃𝛽𝑗 (and hence 𝛼𝑖 and 𝛽𝑗) are treated as nuisance parameters, and can be estimated by 1ξπœ‡=ln(𝑛)+𝐼𝐼𝑖=1𝑝ln𝑖‒+1𝐽𝐽𝑗=1𝑝ln‒𝑗,𝛼𝑖𝑝=lnπ‘–β€’ξ€Έβˆ’1𝐼𝐼𝑖=1𝑝ln𝑖‒,̂𝛽𝑗𝑝=lnβ€’π‘—ξ€Έβˆ’1𝐽𝐽𝑗=1𝑝ln‒𝑗,(4) respectively; see, for example, Beh and Davy [2]. The importance of the interpretation of the parameter πœ™ can be highlighted by considering that ξ‚΅π‘šlnπ‘–π‘—π‘šπ‘–+1,𝑗+1π‘šπ‘–,𝑗+1π‘šπ‘–+1,𝑗𝑒=πœ™π‘–+1βˆ’π‘’π‘–π‘£ξ€Έξ€·π‘—+1βˆ’π‘£π‘—ξ€Έ.(5) Therefore, if the row scores (and column scores) are chosen to be consecutive integers, so that 𝑒𝑖+1βˆ’π‘’π‘–=1 and 𝑣𝑗+1βˆ’π‘£π‘—=1, then ξ‚΅π‘šπœ™=lnπ‘–π‘—π‘šπ‘–+1,𝑗+1π‘šπ‘–,𝑗+1π‘šπ‘–+1,𝑗(6) and is the constant log-odds ratio of the contingency table.

There are various algorithmic strategies that can be considered that provide an accurate means of determining the maximum likelihood estimate of πœ™. These include, but are not limited to, the contributions of Goodman [3], Haberman [4], Agresti [5, Appendix B], Nelder and Wedderburn [6], Galindo-Garre and Vermunt [7], and AΓ―t-Sidi-Allal et al. [8].

An alternative approach to estimating πœ™ involves a more direct estimation procedure and was proposed by Beh and Davy [2]. They considered a moderately reliable and relatively mathematically simple means of estimating πœ™ noniteratively. Beh and Farver [9] greatly improved upon this approach. By applying these estimation techniques to fourteen commonly analysed two-way contingency tables considered in the statistics literature, Beh and Farver [9] showed that noniterative procedures provide estimates of πœ™ that are comparable, and in most cases statistically indistinguishable, to ML estimates using Newton’s unidimensional method. Here we further elaborate on this empirical study by examining the relative stability of estimating πœ™ noniteratively and by using Newton’s unidimensional method. Also discussed is the impact the sample size has when using iterative and noniterative estimation procedures.

2. On Estimating πœ™

2.1. MLE (Newton’s Unidimensional Method)

There are a number of iterative algorithms that may be used for obtaining the maximum likelihood estimate (MLE) of πœ™ from model (3). Some procedures include iterative proportional fitting, as described by Agresti [5, pages 64–66], and Nelder and Wedderburn’s [6] quasilikelihood approach. Another popular iterative approach, and one adopted in this paper, is Newton’s unidimensional method. Refer to Goodman [3], Haberman [4, 10], and Agresti [5] for further details on the method. Here a brief description of Newton’s method will be provided although a more detailed account on the algorithm used in this paper is provided in Beh and Farver [9].

Suppose that 𝑛𝑖𝑗 are independent Poisson random variables. At the (𝑑+1)th iteration of the algorithm, the MLE of πœ™ from the 𝑑th iteration is updated such thatξπœ™(𝑑+1)NR=ξπœ™(𝑑)NR+βˆ‘πΌπ‘–=1βˆ‘π½π‘—=1ξ€·π‘’π‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€Έξ‚€π‘›π‘–π‘—βˆ’π‘š(𝑑)π‘–π‘—ξ‚βˆ‘πΌπ‘–=1βˆ‘π½π‘—=1ξ€·π‘’π‘–βˆ’π‘’ξ€Έ2ξ€·π‘£π‘—βˆ’π‘£ξ€Έ2π‘š(𝑑)𝑖𝑗(7) until |ξπœ™(𝑑+1)NRβˆ’ξπœ™(𝑑)NR|<πœ€, for some reasonable value of πœ€, say πœ€=0.0001. Here, π‘š(𝑑)𝑖𝑗 is just (3) with ξπœ™π‘(𝑑) in place of πœ™. When this stopping criterion is satisfied, the MLE of πœ™ using Newton’s method, ξπœ™π‘, is the final iterative estimate ξπœ™π‘(𝑑+1). In the study undertaken by Beh and Farver [9], an initial value of ξπœ™(0)NR=0 was chosen and, as (2) indicates, coincides with independence between the two variables. The standard error of the MLE of πœ™ is ξ‚€ξπœ™SENR=1ξ”βˆ‘πΌπ‘–=1βˆ‘π½π‘—=1ξ€·π‘’π‘–βˆ’π‘’ξ€Έ2ξ€·π‘£π‘—βˆ’π‘£ξ€Έ2π‘šπ‘–π‘—.(8) Beh and Farver [11] showed that the maximum standard error of the estimate of πœ™ for a contingency table coincides with the hypothesis of independence (πœ™=0) and may be calculated by SE(πœ™)=[πœŽπΌπœŽπ½βˆšπ‘›]βˆ’1.

There are various adaptations of this algorithm that can be considered to accelerate the estimation of πœ™ or to ensure the algorithm converges. Due to the substantial level of technical expertise required to implement these algorithms, we will consider the traditional unidimensional version of Newton’s method.

2.2. Noniterative Methods

Originally, Beh and Davy [2] considered various issues concerned with the noniterative estimation of πœ™ for model (2). As part of their study, they derived a simple means of estimating the parameter by considering ξπœ™BDNI=1𝜎2𝐼𝜎2𝐽𝐼𝐽𝑖=1𝑗=1π‘π‘–π‘—ξ€·π‘’π‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€Έ,(9) where 𝜎2𝐼=βˆ‘πΌπ‘–=1𝑒2π‘–π‘π‘–β€’βˆ‘βˆ’(𝐼𝑖=1𝑒𝑖𝑝𝑖‒)2 and 𝜎2𝐽=βˆ‘π½π‘—=1𝑣2π‘—π‘β€’π‘—βˆ‘βˆ’(𝐽𝑗=1𝑣𝑗𝑝‒𝑗)2. Beh and Farver [9] continued to examine these issues and proposed the following two noniterative estimates: ξπœ™LogNI=1𝜎2𝐼𝜎2𝐽𝐼𝐽𝑖=1𝑗=1π‘π‘–β€’π‘β€’π‘—ξ€·π‘’π‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€Έξ‚΅π‘lnπ‘–π‘—π‘π‘–β€’π‘β€’π‘—ξ‚Άξπœ™,(10)LogNI1=2𝜎2𝐼𝜎2𝐽𝐼𝐽𝑖=1𝑗=1π‘π‘–β€’π‘β€’π‘—ξ€·π‘’π‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€ΈΓ—ξ‚΅π‘π‘–π‘—βˆ’π‘π‘–β€’π‘β€’π‘—π‘π‘–π‘—+𝑝𝑖‒𝑝‒𝑗,(11) where (10) is referred to as the LogNI estimate. Here, (11) involves using a first-order approximation of the logarithm function in (10) and is termed the LogNI1 estimate. By considering a second-order approximation of the logarithm in (10), Beh and Farver [11] proposed another estimate to improve upon that of (11) ξπœ™LogNI2=2𝜎2𝐼𝜎2𝐽𝐼𝐽𝑖=1𝑗=1π‘π‘–β€’π‘β€’π‘—ξ€·π‘’π‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€ΈΓ—ξƒ¬ξ‚΅π‘π‘–π‘—βˆ’π‘π‘–β€’π‘β€’π‘—π‘π‘–π‘—+𝑝𝑖‒𝑝‒𝑗+13ξ‚΅π‘π‘–π‘—βˆ’π‘π‘–β€’π‘β€’π‘—π‘π‘–π‘—+𝑝𝑖‒𝑝‒𝑗3ξƒ­(12) which is referred to as the LogNI2 estimate. The comprehensive computation study of Beh and Farver [11] demonstrated the reliability and stability of the LogNI estimate (10) in estimating the parameter πœ™ directly. They also showed that for small πœ™ values, or for small contingency tables, the LogNI estimate (10), LogNI1 estimate (11), and LogNI2 estimate (12) provide very good estimates when compared with the MLE calculated using Newton’s method. The computational study given in the following section calculates the standard error of BDNI estimate (9), LogNI estimate (10), LogNI1 estimate (11), and LogNI2 estimate (12) using (8).

3. A Computational Study

Two key issues concerning the estimation of πœ™ in (2) are considered in this section:(1)the stability of using the LogNI estimate (10) and Newton’s method to estimate πœ™,(2)the impact of the sample size in estimating the parameter using these two methods.

The study of these two issues was made by adopting the simple procedure for randomly generating a contingency table of given dimension, sample size, 𝑛, and πœ™ value described in Beh and Farver [11]. The results reported in the following sections are based on randomly generating 1000 contingency tables using the procedure outlined in the appendix, with a fixed and predefined dimension and πœ™. For the first issue, samples sizes of π‘›β‰ˆ1000 were considered, and varied from 10 to 10000 for investigations of the second issue.

3.1. Stability of the Estimates

Beh and Farver [11] demonstrated computationally the issues concerning the accuracy of Newton’s method and four noniterative methods (the BDNI estimate (9), the LogNI estimate (10), the LogNI1 estimate (11), and the LogNI2 estimate (12)) for estimating πœ™. Understanding how stable and reliable these methods are in calculating πœ™ is a very important aspect of such a study. In the present study, three different types of contingency tables were considered to represent the large variation of dimension and πœ™ commonly encountered (see, e.g., Beh and Farver [9] who considered the estimation of πœ™ for fourteen commonly analysed contingency tables found in the statistical literature). One thousand (1000) randomly generated 4Γ—5 contingency tables with πœ™=0.5, 5Γ—5 tables with πœ™=0.3 and 3Γ—3 tables with πœ™=0.8 were considered. In practice, πœ™ may often be smaller (say πœ™<0.3), and, as shown in Beh and Farver [11], the noniterative estimation methods compare very well with Newton’s method of calculating the MLE of πœ™. Therefore, the stability of the noniterative methods for larger πœ™ values was studied. To avoid any problems involved in using the logarithm function for zero-cell values, cells from the randomly generated contingency tables with a zero frequency are replaced with 0.05, a value which is negligibly small in comparison with the sample size of approximately 1000. Agresti [12, page 397] considers how one may treat zero-cell counts in a contingency table.

3.1.1. 1000 4 Γ— 5 Tablesβ€”πœ™=0.5

One thousand (1000) 4Γ—5 contingency tables were generated with πœ™=0.5. Figure 1 shows how stable and accurate each of the five methods were for estimating πœ™ from (2).

The five plots on the first line of Figure 1 summarise the estimate of πœ™ calculated (to four decimal places) using Newton’s method, the BDNI estimate (9), the LogNI estimate (10), the LogNI1 estimate (11), and the LogNI2 estimate (12), respectively. These graphs clearly show that Newton’s method produces extremely reliable and consistent estimates of the parameter. The iterative technique produced a mean estimate of 0.500182 with a mean standard error (calculated using expression (8)) of 0.01671. The method took, on average, 44 iterations to converge to four decimal places ranging from 20 to 82 iterations (median is 43). Of the four noniterative methods, method (10) provided accurate and reliable estimates of πœ™. This method produced stable estimates with mean of 0.50298 (mean SE of 0.0122) which is favorably comparable with the MLE. However, while the BDNI estimate (9), LogNI1 estimate (11), and LogNI2 estimate (12) produced fairly consistent estimates, they underestimated the value of πœ™. This is not surprising since these three estimation procedures require a first or second order approximation of the logarithm function present in the LogNI estimate (10). However, not surprisingly, the second-order logarithm approximation (whose graphical summary appears as the fifth plot of the first line of Figure 1) produced better estimates than either of the two first-order logarithm approximation methods. The noniterative methods of the BDNI estimate (9), the LogNI1 estimate (11), and the LogNI2 estimate (12) produced mean estimates (and standard errors) of 0.35573 (0.01424), 0.40950 (0.01352), and 0.46108 (0.01279), respectively. Of the noniterative estimates, the mean standard error of the estimates using method (9) were lower than those estimates using an approximation of the logarithm function. One may also note that, as part of the analysis, the mean maximum standard error of the tables, calculated using SE(πœ™)=[πœŽπΌπœŽπ½βˆšπ‘›]βˆ’1, was 0.01729.

The second row of Figure 1 summarises the (Wald test) 𝑃-value obtained by comparing each of the estimated values of πœ™ with 0.5. They clearly show that the 𝑃 values for the MLE of πœ™ calculated using Newton’s method were all very close to 1, indicating that there is very strong evidence that the MLE is statistically consistent with the true parameter value. Of the noniterative techniques, the estimates calculated using the LogNI estimate (10) had 𝑃 values consistently above 0.5, with many of them being well above 0.8 indicating that, of all the 1000 tables generated, all the estimates were statistically indistinguishable with πœ™=0.5. Of the three remaining noniterative methods, the original estimation procedure of Beh and Davy [2] (the BDNI estimate (9)) performed the worst and calculated 𝑃 values less than 0.05.

3.1.2. 1000 5 Γ— 5 Tablesβ€”πœ™=0.3

One thousand (1000) 5Γ—5 contingency tables were generated with πœ™=0.3. Figure 2 shows how stable and accurate each of the five methods were for estimating πœ™ from (2).

Again, Newton’s method of calculating the MLE of πœ™ was more stable than any of the noniterative techniques. The mean MLE from the 1000 tables randomly generated was an impressive 0.30001 (0.01455) with the algorithm requiring between 14 and 45 iterations to converge to four decimal places (the median number of iterations observed was 23). However, the LogNI estimate (10) also proved to be an extremely reliable and consistent noniterative estimation procedure and achieved estimates whose 𝑃 values were consistently well above 0.8. Here, the mean estimate using the LogNI estimate (10) is 0.30010 (0.01198) compared with 0.29083 (0.01214) for method (12), followed by a mean of estimate of 0.26797 (0.01249) for the LogNI1 estimate (11) and a relatively poor mean estimate of 0.24209 (0.01286) for the BDNI estimate (9). For the tables that were randomly generated, the mean maximum standard error of πœ™ was 0.01498.

The 𝑃 values of the noniterative methods, as summarised in Figure 2, attest to the accurate and consistent estimation of πœ™ using the LogNI estimate (10), while the LogNI2 estimate (12) produced estimates that were nearly as reliable, although consistently underestimating (due to the approximation of the logarithm function used in the LogNI estimate (10)) πœ™. The BDNI estimate (9) and LogNI1 estimate (11) proved to be the least reliable due to both involving first order approximations of the natural logarithm function in the LogNI estimate (10), however their Wald 𝑃-values were all well above the nominal 0.05 level of significance, with all being at least 0.3.

3.1.3. 1000 3 Γ— 3 Tablesβ€”πœ™=0.8

One thousand (1000) 3Γ—3 contingency tables were generated with πœ™=0.8. Figure 3 shows how stable and accurate each of the five methods were for estimating πœ™ from (2).

Figure 3 shows that for the 1000 randomly generated contingency tables method (10) estimated πœ™ with great accuracy and reliability, just as Newton’s method did. The general level of accuracy of the LogNI estimate (10) is evident by noting that the mean of the estimates was 0.80164 (0.04765) with a mean maximum standard error of 0.05531, while the mean MLE was 0.80057 (0.05421). To calculate the MLE with this level of precision required a median of 34 iterations to converge to four decimal places, with a range of 20 to 155 iterations. The LogNI2 estimate (12) again produced relatively stable and accurate results, with a mean estimate of 0.78785 (0.04789) while the BDNI estimate (9) provided the worst estimates with a mean estimate of 0.68781 and a standard error of 0.04930.

3.2. Impact of Sample Size on the Estimate of πœ™

The results in Section 3.1 clearly show that using method (10) provides as accurate and reliable means of estimating πœ™ as those obtained using the more commonly adopted MLE procedures (Newton’s unidimensional method here). However, for all of the randomly generated contingency tables, the sample size was approximately 1000. In this section, we examine the accuracy and reliability of the estimates obtained using Newton’s method compared with the LogNI approach, method (10), for 1000 randomly generated contingency tables where the sample size varied from 10 to 100000.

When calculating the MLE, the number of iterations needed for convergence stabilised. For example, for a 3Γ—3 contingency table where πœ™=0.3, one would expect Newton’s method to estimate the MLE of the parameter (to an accuracy of four decimal places) at approximately 34 iterations, while for a 4Γ—5 table 43 iterations would be expected. As expected the number of iterations required to ensure convergence depends on the magnitude ofβ€‰β€‰πœ™ and the size of the contingency table being analysed.

As part of this study, three different sized contingency tables were considered: 3Γ—3 contingency tables whereβ€‰β€‰πœ™=0.8, 4Γ—5 contingency tables whereβ€‰β€‰πœ™=0.5, and 5Γ—5 contingency tables whereβ€‰β€‰πœ™=0.3. Table 1 summarises the mean estimated value of πœ™ using Newton’s method and the LogNI estimate (10) from 1000 randomly generated contingency tables. Table 1 also includes, when using Newton’s method to find the MLE of πœ™, the median number and the range (minimum and maximum) of iterations needed for convergence to occur to four decimal places. It shows that, for the three different types of contingency tables considered, as the sample size increased, so too did the accuracy of both estimates.

Suppose that we now consider the impact of the sample size when adopting Newton’s method and the LogNI estimate (10) for estimating πœ™ in the ordinal log-linear model of (2). To monitor the relative accuracy of the estimates using these methods compared to the specified value of πœ™ used to randomly generate the contingency tables, the quantity %Ξ” in Table 1 describes the percentage difference in the estimate using each of the procedures compared with the specified value of πœ™ such that %Ξ”=100β‹…|1βˆ’πœ™/πœ™|. It can be seen that, for small sample sizes, both estimation procedures produce estimates that are equally poor; although, for the 1000 random 3Γ—3 tables withβ€‰β€‰πœ™=0.8, Newton’s method did substantially better at estimating πœ™ than the LogNI estimate (10). However, as the sample size increases, both estimation procedures become comparable, getting to within 1% of the specified value of πœ™ for sample sizes exceeding 500. Table 1 shows that the LogNI estimate produces very consistent estimates of the underlying parameter and, in some cases involving larger sample sizes, performs better than its iterative counterpart. In such cases, this provides some compelling evidence for considering the computationally simple estimation procedure of noniterative estimation, especially the LogNI estimate (10).

4. Discussion

This paper has examined, through simulation studies, the accuracy and reliability of estimation techniques for πœ™ of the ordinal log-linear model (2). Traditionally, the MLE of this parameter is determined iteratively, either through variations of iterative proportional fitting, Newton’s method, or by some other way. However Beh and Davy [2] and Beh and Farver [9, 11] developed, between them, four noniterative estimation techniques, and this paper has computationally studied their precision and consistency. While Beh and Farver [9, 11] established that the LogNI estimate (10) provides a very accurate estimate of the parameter when compared with the estimate obtained using Newton’s method, the simulation study performed in Section 3 has demonstrated that the LogNI estimate (10) also produces an estimate that is consistent with the true parameter value. We have also shown that, while they may not produce estimates that are as accurate as the LogNI estimate, the BDNI estimate (9), LogNI1 estimate (11), and the LogNI2 estimate (12) are very reliable. A computational study of the impact of sample size on the estimates was also examined, and it was shown that the LogNI estimate provided very consistent results when compared with the estimate using Newton’s unidimensional method.

With the advent of faster computing power and processing, performing an algorithm that cycles through hundreds or even thousands of iterations is no longer a major issue. So the question that one may ask is why should noniterative estimation be considered? Certainly for those well versed in undertaking computationally intensive studies, or familiar with the breadth of computing facilities that are now available to perform statistical tasks, estimating the parameters from models like (2) using iterative algorithms is a relatively simple task. However, not all analysts are as well versed in with such tools. Therefore, simple, and direct estimation procedures such as the four noniterative estimates studied in this paper provide one with a means of estimation that is computationally simple, accurate, and stable. There are other factors that can make noniterative approaches appealing, and these stem from problems inherent with using computationally intensive algorithms. While it may occur infrequently for models like (2) that problems with convergence will fail to produce an estimate, or that poor starting values will lead to poor estimates, they can still occur. Direct estimation procedures, therefore, provide the analyst with an alternative strategy for parameter estimation.

The aim of this paper is not to demonstrate the superiority of noniterative estimation methods over the more traditional MLE approaches that adopt algorithms to perform estimation. Instead the aim of this paper, and its predecessors, is to highlight that there are alternative strategies that can be considered. There are, however, still many issues yet to be resolved for the noniterative estimation procedures studied here and elsewhere. For example, this paper has not proposed a strategy for calculating noniterative estimates of multiple parameters in an ordinal log-linear model that have a nonzero covariance structure. This issue, and others like it, will be left for future consideration.

Appendix

Randomly Generating a Contingency Table

In order to study the accuracy and reliability of Newton’s unidimensional method and the noniterative methods described above, we adopted a simple procedure for generating a two-way contingency table of dimension 𝐼×𝐽 given a value of πœ™ and sample size, 𝑛. The procedure involves selecting an independent and random sample of 𝐼  pseudomarginal row proportions, denoted by ̃𝑝𝑖‒, from a uniform distribution from the interval [0,1]. A sample of 𝐽  pseudomarginal column proportions, ̃𝑝‒𝑗, is generated in a similar manner. The random marginal proportions of the 𝑖th row and 𝑗th column can, therefore, be obtained such that ̆𝑝𝑖‒=Μƒπ‘π‘–β€’βˆ‘πΌπ‘–=1̃𝑝𝑖‒,̆𝑝‒𝑗=Μƒπ‘β€’π‘—βˆ‘π½π‘—=1̃𝑝‒𝑗,(A.1) respectively, ensuring that βˆ‘πΌπ‘–=1̆𝑝𝑖‒=1 and βˆ‘π½π‘—=1̆𝑝‒𝑗=1. Given these randomly generated marginal proportions and the predefined scores used to reflect the ordered structure of the categories, the mean row and column scores are 𝑒=𝐼𝑖=1𝑠𝐼(𝑖)̆𝑝𝑖‒,𝑣=𝐽𝑗=1𝑠𝐽(𝑗)̆𝑝‒𝑗,(A.2) respectively. For this computational study, natural row scores {𝑠𝐼(𝑖)=π‘–βˆΆπ‘–=1,2,…,𝐼} and natural column scores {𝑠𝐽(𝑗)=π‘—βˆΆπ‘—=1,2,…,𝐽} are chosen to reflect the ordinal structure of the categories. The (𝑖,𝑗)th joint marginal cell frequency is then calculated based on the ordinal log-linear model (7) such that ̃𝑛𝑖𝑗=expπœ‡+𝛼𝑖+𝛽𝑗𝑒+πœ™π‘–βˆ’π‘’π‘£ξ€Έξ€·π‘—βˆ’π‘£ξ€Έξž,(A.3) where ̃𝑛𝑖𝑗 is the frequency observed in the (𝑖,𝑗)th cell, given the randomly generated marginal proportions, the pre-determined πœ™ value, and 1πœ‡=ln(𝑛)+𝐼𝐼𝑖=1ξ€·ln̆𝑝𝑖‒+1𝐽𝐽𝑗=1ξ€·ln̆𝑝‒𝑗,𝛼𝑖=lnΜ†π‘π‘–β€’ξ€Έβˆ’1𝐼𝐼𝑖=1ξ€·ln̆𝑝𝑖‒,𝛽𝑗=lnΜ†π‘β€’π‘—ξ€Έβˆ’1𝐽𝐽𝑗=1ξ€·ln̆𝑝‒𝑗.(A.4) It is apparent that the ̃𝑛𝑖𝑗 values obtained will not be guaranteed to be an integer. Therefore, each cell value is rounded to the nearest integer to obtain the randomly generated contingency table. Thus, the sample size of n specified in the algorithm is only an approximate sample size value.