# Comparison of Prior Setting Methods for Multilevel Model Effect Estimation Based on Small Sample Imbalanced Nested Data in Bayesian Framework

Authors: Guangming Li; Like An
Journal: Computational Intelligence and Neuroscience
 (2022)

---

## Abstract

In the fields of education and psychology, nested data with small samples and imbalances are very common. Bauer et al. (2008) first proposed adjusting the traditional multilevel model to analyze the small sample imbalanced nested data (SSIND). In terms of parameter estimation, the Bayesian method shows the possibility of providing unbiased estimation when the sample size is small. This study proposes that the Bayesian method should be used to analyze the SSIND. This study explores the performance of different treatment effects and nesting effects estimation methods in the multilevel model based on the Bayesian method that performs well in the case of small samples, to provide an appropriate and scientific method reference for the subsequent analysis of the model. Two prior setting methods are compared for multilevel model effect estimation based on a small sample of imbalanced nested data in the Bayesian framework. Two prior setting methods are gamma prior setting method and uniform prior setting method. The research results show that when the treatment condition ICC is small (0.05), the bias and RMSE values of the parameter estimation by the gamma prior setting method are larger and the performance is unstable, while the bias and RMSE values of the parameter estimation by the uniform prior setting method are smaller and the performance is relatively stable, so the uniform prior setting method is recommended; when the treatment condition ICC is large (0.15), the bias and RMSE values of the parameter estimation by the uniform prior setting method are larger and the performance is unstable, while the bias and RMSE values of the parameter estimation by the gamma prior setting method are smaller and the performance is relatively stable, so the gamma prior setting method is recommended; when the treatment condition ICC is between 0.05 and 0.15, both prior setting methods have similar effects. Furthermore, when the number of treatment groups is small (8), the gamma prior setting method is recommended; when the number of treatment groups is large (16), the uniform prior setting method is recommended; when the number of treatment groups is between 8 and 16, both prior setting methods have similar effects. Summarily, when we choose which prior setting method to use for the SSIND, we must consider the interaction between the ICC and the number of treatment groups.


---

## Body

## 1. Introduction

In social science, many research questions are embodied in multilevel or multilayered data structures. For example, students in these classes evaluate their teachers. Different teachers teach different classes of students, and the students are nested in the classes. The data structure of this design is multilevel or multilayer. However, in some cases, the population that researchers are interested in may be small, and it will be difficult to collect many samples. Therefore, researchers must collect a small sample of data with different subjects nested in different imbalanced groups, which is called “Small Sample Imbalanced Nested Data” (SSIND) and is very common in the fields of education and psychology. Bauer et al. [1] found that although certain studies on multilevel models and nested data have been conducted, the methodological research on nested data with imbalances in small samples has only begun recently. For this type of data, the traditional analysis method is to ignore the imbalanced structure of the data and use a linear regression model to analyze it or to treat it as balanced nested data and use a traditional multilevel model to analyze it. These two methods cannot correctly explain the similarity among individuals in each treatment group, nor can they correctly estimate the treatment effects that researchers are concerned about. Therefore, using a multilevel model that conforms to the data for analyzing is crucial to the accuracy of the parameter estimation results [2–6].For the nested data in common educational research, traditional regression analysis has two treatment methods.Firstly, all higher level variables are treated as first level variables and the data are analyzed directly at the individual student level. The problem with this method is that the class variables have the same effect on students in the same class without distinguishing the effects of the class on the students. It is unreasonable to assume that students in the same class are independent of each other. It is also unreasonable for students in the same class to make the same assumption.Secondly, the observations of the first level are merged directly into the observations of the second level and then directly the class is analyzed. The main problem with this is that information about the differences among individual students in the class is lost. In practice, this part of the variation may account for a large part of the total variation.Based on the above discussion, these two methods have one thing in common: they do not consider the characteristics of data stratification. The first method will infer the analysis results of microunit data (student level) to the macro-unit (class level). It is guilty of the “ecological fallacy”; the second method will commit the “reductionism fallacy” (reductionism fallacy) when inferring the analysis results of the macro-unit (class level) to the micro-unit (student level). This is a limitation of the traditional regression analysis methods when analyzing data with a nested structure.The traditional linear regression model assumes that there is a straight line relationship among variables; the variables as a whole obey a normal distribution; the variance is homogeneous, and the random errors among individuals are independent of each other. The first two assumptions are easy to guarantee, but the homogeneity of variances, especially the assumption that the random errors among individuals are independent of each other, is difficult to meet. It is that students in different classes can be assumed to be independent of each other, but students in the same class are affected by the same class variable; thus, it is difficult to guarantee mutual independence. Therefore, in the analysis, the error in the traditional regression analysis should be decomposed into two parts: one is the error caused by the difference among the individuals at the first level and the other is the error caused by the difference at the second level. It can be assumed that the measurement errors among individuals at the first level are independent of each other, and the errors caused by classes at the second level are independent of each other among different classes. This is the core of the multilevel analysis.Due to the advantages of decomposition errors, the development of multilevel linear models began to mature in the mid to late 1980s. This model has different titles in different disciplines. In educational research, it is named the hierarchical linear model (HLM); in biostatistics, it is called the mixed-effects model and random effects model; in econometrics, it is called the random coefficient regression model; it is called a covariance component model in the statistical literature.In addition, in terms of parameter estimation, the classic parameter estimation method mainly uses the maximum likelihood estimation method. However, when the number of high-level units is small or the data structure is imbalanced, the maximum likelihood estimation has certain shortcomings in the estimation accuracy [7]. Although some studies have improved the parameter estimation methods for nested data under the framework of multilevel models, such as various small sample correction methods, these estimation methods can modify the p value of fixed effects and confidence interval estimation after adjusting the standard errors and degrees of freedom [8, 9]. However, when estimating the variance of the second-level nesting effect in the model, these methods do not solve the uncertainty problem in the estimation, and the nesting variance cannot be estimated correctly. Recently, the Bayesian method has shown the possibility of providing an unbiased estimate when the sample size is small, but related research is still very scarce, particularly in the selection of prior distributions, and there are differences among researchers [10, 11]. There are several major papers in the general Bayesian multilevel literature, such as Depaoli and Clifton [12]; Fang et al. [13]; Helm [14]; McNeish [15]; van Erp et al. [16]; and Zitzmann et al. [17]. While these papers may focus on general multilevel model specifications different from the one used in the current paper, they offer valuable insight into the impact of prior specifications and Bayesian estimation but they do not focus on the SSIND.Therefore, this article uses simulation research based on the research of common multilevel models and uses the Bayesian method that performs well in the case of small samples and explores the different treatment effects and nesting effect estimation methods in multilevel models. Furthermore, in terms of the prior setting of parameters, it provides some suggestions for empirical researchers to analyze the imbalanced nested data of small samples.Since Bauer et al. [1] proposed a new method for analyzing imbalanced nested data, some studies have been conducted to explore whether the model has advantages over other models, but most of the research results show that the model performs better [2–6]. In addition, the population that the researchers are interested in may be small, so collecting large numbers of samples may be challenging. This research may also be exploratory. The researchers do not intend to collect a large sample size due to practical problems such as financial constraints or difficulty in recruiting many participants. Nested data with a small number of treatment groups are very common. For example, recruiting many higher level units (such as schools or hospitals) to participate in research requires a lot of costs. Moreover, some populations may only be sparsely distributed and have a small number of people, so it is difficult to collect a large number of samples (for example, the number of schools set up for deaf students in the United States is small). Therefore, nested data with small samples and imbalances are very common.In the past ten years, some simulation studies have used various methods to treat the small sample characteristics of imbalanced nested data, such as the model proposed by Bauer et al. [1] (MLMs; e. g., [2, 4, 6, 18]). These studies usually show that models with about 20 to 40 treatment groups can exhibit ideal properties (for example, consistency), and if the Kenward-Roger method, which corrected the restrictive maximum likelihood method (REML), is used for parameter estimation, only 10 to 20 treatment groups can maintain the ideal statistical attributes. But, other studies advocate the use of Bayesian methods when the number of treatment groups is small [10, 18–21], especially in estimating the variance component (when the number of treatment groups is small, the likelihood method can be difficult to estimate the variance component) [22]. Gelman [23] obtained an unbiased estimate of the intercept variance in the case of only three treatment groups through an application example, in the case of carefully choosing the prior distribution. The following literature presents related research on the analysis of SSIND.Baldwin et al. [2] used simulation studies to compare five models for analyzing small sample imbalanced nested data, namely, linear regression models, models that treat each group of treatment conditions as fixed effects, and traditional multilevel models, setting the residuals of the first level under the treatment conditions and the control conditions in the model proposed by Bauer et al. [1] as equal and unequal models. The study also compared the performance of three methods for calculating degrees of freedom: the between-within method, the Satterthwaite approximation method, and the Kenward-Roger method. The results found that the model proposed by Bauer et al. [1] had a better Type I error rate when estimating fixed effects than the other three models. Whether the model is homogeneous or not does not affect the Type I error rate. The study also found that at least 8 treatment groups are required. Also, it is best to have 16 or more to maintain the nominal Type I error rate. In addition, the Satterthwaite method for calculating degrees of freedom is superior to the between-within method, and the effect is similar to the Kenward-Roger method. Although the estimation of the treatment effects is unbiased when the model is homogeneous or heterogeneous, when the value is large and the number of treatment groups and the number of subjects in each group are small, the estimate of the second-level variance component is biased.Korendijk et al. [4] evaluated three models for analyzing the SSIND, including the model proposed by Bauer et al. [1]; a multilevel model that treats each subject in the control group as a treatment group, and a multilevel model that treats the control group as a large treatment group. The results show that when the number of treatment groups and the intragroup correlation coefficient under treatment conditions are very small (c = 10, ρ = 0.05), the variance component will have a negative estimate. The multilevel models that treat the control group as a large-treatment group are more likely to produce unobserved solutions. In addition, the model proposed by Bauer et al. [1] and the multilevel model that treats each subject in the control group as a treatment group have roughly the same deviations in the estimated parameters, although the structure of the variance component specified by the latter is wrong.Sanders [6] uses four methods to analyze small sample imbalanced nested data, including a multilevel model that treats the control group as a large-treatment group, and divides the control group into several groups. A multilevel model has the same number of each group as the treatment group. The other two models treat the subjects in the control group as a treatment group: one model is a random intercept with a fixed slope, and the other model is a fixed intercept with a random slope. The study also compared two methods for calculating degrees of freedom, namely, the between-within method and the Kenward-Roger method. The results of the study are similar to those of Baldwin et al. [2]; the Kenward-Roger method is better than the between-within method; furthermore, increasing the number of treatment groups can improve the statistical test power compared to increasing the number of subjects in each group. In addition, models with fixed intercepts and random slopes perform better than the other models in most cases.Candlish et al. [3] used a simulation study to compare the performance of six models when analyzing the SSIND. The results showed that when the number of treatment groups (3–6) and the number of subjects in each group (5–10) and the ICC (Intra-class Correlation Coefficient) (≤0.05) are small, there is no optimal model.The above research shows that under most conditions, the model proposed by Bauer et al. [1] performs best when analyzing the SSIND. However, when the sample size is small or the intragroup correlation coefficient is small under the treatment conditions, the performance of the model is not sufficiently good [3]. McNeish [24] pointed out that about 33% of the growth model, 20% of the multilevel model, 40% of the meta-analysis, and 30% of the random control experiment data have small sample problems. In addition, when the sample size is relatively small and the variance structure of the data is complex, the inference of the variance component and fixed effects is very complicated due to the uncertainty of the true value of the variance component. Even if researchers use the model proposed by Bauer et al. [1] to analyze such data, the estimation methods used are often common maximum likelihood estimation or restrictive maximum likelihood estimation methods. After adjusting the standard errors and degrees of freedom, these estimation methods can revise the p value and confidence interval estimates of the fixed effects [8, 9]. However, these adjustments did not directly solve the uncertainty of estimating the variance component, and it is impossible to estimate the variance component correctly. The following literature presents some research studies on the comparison of parameter estimation methods under the framework of multilevel models.Baldwin and Fellingham [10] compared the performance of the likelihood method and the Bayesian method in the case of a small sample based on the model proposed by Bauer et al. [1]. The results show that for fixed effects, the two estimation methods perform well in terms of bias, efficiency, and confidence interval coverage; for variance components, the carefully selected gamma prior Bayesian method has more deviation but higher estimation efficiency compared to the restrictive maximum likelihood method. In addition, in the case of a small sample, the inference of the variance component is very sensitive to the choice of the prior distribution.Based on a multilevel model, McNeish and Stapleton [5] compared the performance of the full maximum likelihood method and the restrictive maximum likelihood method in the case of a small sample. The results show that for continuous outcome variables, the restrictive maximum likelihood estimation method is better than the maximum likelihood method in estimating the variance components, and the Kenward-Roger method, which adjusted the REML, can improve the problem of underestimated fixed effect standard errors.van de Schoot et al. [11] systematically reviewed the application of the Bayesian method in the field of psychology in the past 25 years and found that this method only accounts for 3% of the simulation research of multilevel models. The simulation research of the multilevel model may exist in other fields [18], but this also shows that the relevant research using the Bayesian method to estimate that the multilevel model is indeed lacking. In a small number of existing studies, the Bayesian method has shown the possibility of providing unbiased estimates when the sample size is small [7, 10, 25–27].In summary, in terms of parameter estimation, the Bayesian method shows the possibility of providing unbiased estimation when the sample size is small. This study proposes that the Bayesian method should be used to analyze the SSIND. However, few scholars discuss the prior setting of Bayesian methods based on SSIND, which is insufficient. In fact, the inference of variance components is very sensitive to the selection of prior distribution in small samples. According to Baldwin and Fellingham [10], gamma prior setting and uniform prior setting are the two most common prior settings. But, Baldwin and Fellingham [10] did not compare the performance of the two prior setting methods. This study will compare the performance of two prior setting methods (i.e., gamma prior setting method and the uniform prior setting method) for multilevel model effect estimation based on a small sample of imbalanced nested data in a Bayesian framework. Meanwhile, this study will also explore the performance of different treatment effects and nesting effects estimation methods in the multilevel model based on the Bayesian method that performs well in the case of small samples, to provide an appropriate and scientific method reference for the subsequent analysis of the model.


## 2. Methods

### 2.1. Truth Model

Using a self-made R language program, refer to the multilevel model proposed by Bauer et al. [1] that is consistent with the data structure of small sample imbalanced nested data and generate the following truth model:(1)Yij=b0+b1Xij+ujZj+eij.There are 3 × 4 × 3 × 2 = 72 conditions. Refer to Tessler [28] to set the mean value of observations under the control condition to 2 and the treatment effect under the treatment condition to 0.5. Refer to Baldwin and Fellingham [10] to set the error under the control condition to obey a normal distribution with a mean value of 0 and a variance of 0.27, and set the total error under the treatment conditions to obey a normal distribution with a mean value of 0 and a variance of 0.46. The nesting effect under the treatment conditions is set as ρzij, and the error of the individual level under the treatment condition is set as 1−ρzij, and ρ = the variance of the second level/(the variance of the second level + the variance of the first level).


### 2.2. Independent Variables

Since the common imbalanced nested data are mostly small samples, the manipulation conditions of this study are also set by referring to the situation surrounding small samples in previous studies.The number of treatment groups was 8, 12, and 16. Baldwin et al. [2] set the number of treatment groups to four levels of 2, 4, 8, and 16, and Candlish et al. [3] set it to four levels of 3, 6, 12, and 24. In this study, the setting of the number of treatment groups on the basis of the predecessors is all about the small sample situation.The number of participants in each group was 5, 10, 15, and 20. Baldwin et al. [2] set the number of participants in each group to three levels of 5, 15, and 30, and Candlish et al. [3] set it to four levels of 5, 10, 20, and 30. Based on the predecessors, the number of participants in each group is set around a small sample situation in this study.The ICC under the treatment conditions is 0.05, 0.1, and 0.15. Baldwin et al. [2] set the ICC under treatment conditions to five levels of 0, 0.05, 0.1, 0.15, and 0.3. In addition, in a few cases, the intragroup correlation coefficient under treatment conditions is greater than 0.3 [29–32]. Therefore, in this study, ICC was set to three levels of 0.05, 0.1, and 0.15 under the treatment conditions.The estimation method: this study adopts the Bayesian method and sets uniform prior and gamma prior forσU2 under its framework. Among them, referring to Baldwin and Fellingham [10]; the uniform prior is set as the following: σU2∼U0,0.23,σeC2∼U0,0.69,andσeU2∼U0,0.69; the gamma prior is set as the following: σU2∼G13,0.03,σeC2∼G13,0.03,and,σeU2∼G9,0.03.


### 2.3. Fixed Variables

Refer to Baldwin and Fellingham [10] to set the prior mean of the observations under the control conditions to a normal distribution with a mean of 3 and a variance of 2.25. Set the prior of the treatment effect under the treatment conditions to a normal distribution with a mean value of 0 and a variance of 1. Set the prior of nesting effects to a normal distribution with a mean of 0 and a variance of σU2. With reference to Stice et al. [33], the prior of the total error under the treatment conditions is set to a normal distribution with a mean of 2.93 and a variance of 0.46.


### 2.4. Evaluation Index

Convergence rate is as follows:(2)rate=rR,where r represents the number of convergences of the model and R represents the number of repetitions.95% confidence interval coverage of true value is as follows:(3)cover=X∧rlow<Xr<X∧rupR.R represents the number of repetitions, Xˇr represents the parameter to be estimated, and Xr represents the true value of the parameter to be estimated.(4)Bias=∑r=1RX∧r−XrR,RMSE=∑r=1RX∧r−Xr2R.


### 2.5. Research Process and Tools

The analysis tool adoptsR software and JAGS software. First, use R software to generate 1 batch of simulated data under each combination of “number of treatment groups × number of subjects in each group × ICC under treatment condition” and then use two types of Bayesian methods. The prior setting method estimates the treatment effect and the variance of the nesting effect of each batch of data, and the final loop estimates 1000 times. The M-H sampling algorithm is used when fitting a multilevel Bayesian model to avoid slow mixing when estimating the variance, especially when the variance is small. Therefore, to obtain a more accurate estimation result, a longer Markov chain is required. Furthermore, this research refers to Baldwin and Fellingham [10] to choose 50,000 iterations and burn in 10,000 times. There were three Markov chains. After the Markov chain reaches a stable distribution, one sample is taken every 10th, and finally 4000 valid samples are obtained. The posterior distribution is composed, and the posterior estimation of the parameters is carried out accordingly. The analysis results were carried out in Excel 2010. Interested readers can request the code from the corresponding author.


## 2.1. Truth Model

Using a self-made R language program, refer to the multilevel model proposed by Bauer et al. [1] that is consistent with the data structure of small sample imbalanced nested data and generate the following truth model:(1)Yij=b0+b1Xij+ujZj+eij.There are 3 × 4 × 3 × 2 = 72 conditions. Refer to Tessler [28] to set the mean value of observations under the control condition to 2 and the treatment effect under the treatment condition to 0.5. Refer to Baldwin and Fellingham [10] to set the error under the control condition to obey a normal distribution with a mean value of 0 and a variance of 0.27, and set the total error under the treatment conditions to obey a normal distribution with a mean value of 0 and a variance of 0.46. The nesting effect under the treatment conditions is set as ρzij, and the error of the individual level under the treatment condition is set as 1−ρzij, and ρ = the variance of the second level/(the variance of the second level + the variance of the first level).


## 2.2. Independent Variables

Since the common imbalanced nested data are mostly small samples, the manipulation conditions of this study are also set by referring to the situation surrounding small samples in previous studies.The number of treatment groups was 8, 12, and 16. Baldwin et al. [2] set the number of treatment groups to four levels of 2, 4, 8, and 16, and Candlish et al. [3] set it to four levels of 3, 6, 12, and 24. In this study, the setting of the number of treatment groups on the basis of the predecessors is all about the small sample situation.The number of participants in each group was 5, 10, 15, and 20. Baldwin et al. [2] set the number of participants in each group to three levels of 5, 15, and 30, and Candlish et al. [3] set it to four levels of 5, 10, 20, and 30. Based on the predecessors, the number of participants in each group is set around a small sample situation in this study.The ICC under the treatment conditions is 0.05, 0.1, and 0.15. Baldwin et al. [2] set the ICC under treatment conditions to five levels of 0, 0.05, 0.1, 0.15, and 0.3. In addition, in a few cases, the intragroup correlation coefficient under treatment conditions is greater than 0.3 [29–32]. Therefore, in this study, ICC was set to three levels of 0.05, 0.1, and 0.15 under the treatment conditions.The estimation method: this study adopts the Bayesian method and sets uniform prior and gamma prior forσU2 under its framework. Among them, referring to Baldwin and Fellingham [10]; the uniform prior is set as the following: σU2∼U0,0.23,σeC2∼U0,0.69,andσeU2∼U0,0.69; the gamma prior is set as the following: σU2∼G13,0.03,σeC2∼G13,0.03,and,σeU2∼G9,0.03.


## 2.3. Fixed Variables

Refer to Baldwin and Fellingham [10] to set the prior mean of the observations under the control conditions to a normal distribution with a mean of 3 and a variance of 2.25. Set the prior of the treatment effect under the treatment conditions to a normal distribution with a mean value of 0 and a variance of 1. Set the prior of nesting effects to a normal distribution with a mean of 0 and a variance of σU2. With reference to Stice et al. [33], the prior of the total error under the treatment conditions is set to a normal distribution with a mean of 2.93 and a variance of 0.46.


## 2.4. Evaluation Index

Convergence rate is as follows:(2)rate=rR,where r represents the number of convergences of the model and R represents the number of repetitions.95% confidence interval coverage of true value is as follows:(3)cover=X∧rlow<Xr<X∧rupR.R represents the number of repetitions, Xˇr represents the parameter to be estimated, and Xr represents the true value of the parameter to be estimated.(4)Bias=∑r=1RX∧r−XrR,RMSE=∑r=1RX∧r−Xr2R.


## 2.5. Research Process and Tools

The analysis tool adoptsR software and JAGS software. First, use R software to generate 1 batch of simulated data under each combination of “number of treatment groups × number of subjects in each group × ICC under treatment condition” and then use two types of Bayesian methods. The prior setting method estimates the treatment effect and the variance of the nesting effect of each batch of data, and the final loop estimates 1000 times. The M-H sampling algorithm is used when fitting a multilevel Bayesian model to avoid slow mixing when estimating the variance, especially when the variance is small. Therefore, to obtain a more accurate estimation result, a longer Markov chain is required. Furthermore, this research refers to Baldwin and Fellingham [10] to choose 50,000 iterations and burn in 10,000 times. There were three Markov chains. After the Markov chain reaches a stable distribution, one sample is taken every 10th, and finally 4000 valid samples are obtained. The posterior distribution is composed, and the posterior estimation of the parameters is carried out accordingly. The analysis results were carried out in Excel 2010. Interested readers can request the code from the corresponding author.


## 3. Results

### 3.1. Estimated Accuracy Results of Treatment Effects and Nesting Effects for the SSIND under All Operating Conditions

The estimation accuracy results of treatment effects and nesting effects are presented under all operating conditions. Thebias and root-mean-square error (RMSE) of the model convergence rate, confidence interval coverage, the treatment effect, and nesting effect estimation under 72 operating conditions are shown in Tables 1–3.Table 1
Estimated accuracy results of treatment effects and nesting effects for the SSIND under all operating conditions (c = 8).
The number of subjects in each groupICCPrior settingConvergence rateCoverBiasRMSETreatmentNestingTreatmentNestingTreatmentNestingTreatmentNestingEffectEffectEffectEffectEffectEffectEffectEffect50.05U96.198.898.0294.94−2451338113134G97.697.993.7597.55−171−186114270.10U9799.698.5694.38−2721656118166G97.898.493.7697.76−156−96121270.15U96.799.498.2491.65−3011979123198G97.197.692.0796.72−169−312529100.05U9699.698.4495.78−1775828865G97.398.795.1795.85−114−11488320.10U96.999.598.1495.18−19398297102G97.898.393.7696.64−103−12098290.15U96.799.598.3589.15−1941433104146G9898.192.8696.94−1053310632150.05U96.399.999.1796.4−1213097345G97.797.794.6890.79−86−30373330.10U97.210098.8796.2−1457678484G9798.494.4394.11−108−11984270.15U96.399.898.4489.18−190124293128G96.398.894.0894.43−100599330200.05U96.999.697.9496.89−841386837G9898.294.1884.52−40−33468360.10U96.699.897.5295.29−885977970G98.199.194.0992.03−55−14279280.15U96.599.697.3189.76−120106188112G97.898.492.0294.11−68448830Table 2
Estimated accuracy results of treatment effects and nesting effects for the SSIND under all operating conditions (c = 12).
The number of subjects in each groupICCPrior settingConvergence rateCoverBiasRMSETreatmentNestingTreatmentNestingTreatmentNestingTreatmentNestingEffectEffectEffectEffectEffectEffectEffectEffect50.05U96.998.897.4296.66−1483859047G96.897.193.4996.19−132−25391310.10U97.399.397.6495.87−1396239467G98.297.993.5897.96−102−13794280.15U96.498.996.9991.41−1538999893G97.597.291.4997.12−125−1410030100.05U96.798.996.2896.66−72−37130G98.197.592.9784.72−55−32671360.10U96.699.196.3894.35−803157746G97.897.691.6293.24−59−15478290.15U9799.295.7791.03−936418372G97.198.392.7994.51−72318331150.05U98.299.597.1596.28−44−1206127G97.798.292.7376.48−26−35461370.10U97.39996.495.66−392047038G96.998.292.8889.21−32−15269270.15U97.398.996.6191.61−525517763G97.696.791.3994.31−43517728200.05U96.398.996.1690.6−44−1935628G97.297.492.769.82−51−37557380.10U96.898.795.4594.33−621456634G97.597.991.7989.17−60−16066250.15U97.69995.792.63−904907457G97.498.191.2793.07−64497426Table 3
Estimated accuracy results of treatment effects and nesting effects for the SSIND under all operating conditions (c = 16).
The number of subjects in each groupICCPrior settingConvergence rateCoverBiasRMSETreatmentNestingTreatmentNestingTreatmentNestingTreatmentNestingEffectEffectEffectEffectEffectEffectEffectEffect50.05U97.798.596.2197.46−451058030G96.596.892.3392.67−6−28580330.10U9798.595.8896.04−423148444G96.59792.1294.23−31−17184290.15U96.698.495.5592.38−435638864G97.89791.6296.19−23−268930100.05U96.69996.7993.03−23−1595928G96.997.494.2273.1−25−36160380.10U97.698.996.4195.55−351026532G97.296.893.3187.3−25−17864280.15U97.898.795.9191.79−423877050G97.597.192.9292.48−43167127150.05U97.398.194.6685.52−37−2575430G97.997.292.6564−39−39154400.10U97.398.194.4594.7−54286128G98.197.292.0585.49−40−17861260.15U97.798.395.592.47−673296744G97.597.792.8293.14−57366726200.05U97.598.895.4980.16−25−2914532G97.498.394.5657.58−21−39846400.10U96.398.495.5392.07−3055226G96.497.893.8885.07−33−17253250.15U98.198.695.7292.9−323135941G97.497.793.5393.14−28466025According to Tables1–3, summarize and present the estimation accuracy results of treatment effects and nesting effects under all operating conditions (see Table 4).Table 4
Summary of estimation accuracy of treatment effects and nesting effects for the SSIND under all operating conditions.
Prior settingConvergence rateCoverBiasRMSETreatment effectNest effectTreatment effectNest effectTreatment effectNest effectTreatment effectNest effectMean valueU97.099.096.8193.22−1014857965G97.497.893.0489.49−69−1437930Median valueU96.999.096.5194.34−763577747G97.597.892.9093.14−56−1477829Minimum valueU96.098.194.4580.16−301−2914526G96.396.791.2757.58−171−3984625Maximum valueU98.2100.099.1797.46−231979123198G98.299.195.1797.96−65912540Note. “G” means gamma prior, and “U” means uniform prior.According to Table4, on the whole, in terms of convergence rate, the average value of the treatment effect under the gamma prior condition is 97.4%, the median value is 97.5%, the minimum value is 96.3%, and the maximum value is 98.2%. The average value of the treatment effect under the uniform is 97.0%, the median is 96.9%, the minimum is 96.0%, and the maximum is 98.2%. The mean value of the nesting effect under the gamma prior condition is 97.8%, the median value is 97.8%, the minimum value is 96.7%, the maximum value is 99.1%, the mean value of the nesting effect under the uniform prior condition is 99.0%, the median value is 99.0%, the minimum value is 98.1%, and the maximum value is 100%. Under the two prior conditions, the convergence rate is more than 96% and relatively concentrated, and the performance is very good, but the convergence rate of the gamma prior treatment effect is generally more stable than the uniform prior, and the convergence rate of the nesting effect is generally not as stable as the uniform prior.In terms of confidence interval coverage, the mean value of the treatment effect under the gamma prior condition is 93.04%, the median value is 92.9%, the minimum value is 91.27%, and the maximum value is 95.17%. The mean value of the treatment effect under the uniform prior condition is 96.81%, the median is 96.51%, the minimum is 94.45%, and the maximum is 99.17%. The mean value of the nesting effect under the gamma prior condition is 89.49%, the median value is 93.14%, the minimum value is 57.58%, and the maximum value is 97.96%. The mean value of nesting effects under uniform prior conditions is 93.22%, the median value is 94.34%, the minimum value is 80.16%, and the maximum value is 97.46%. The coverage of the treatment effect under the two prior conditions is above 91%, which is very good, but the coverage of the gamma prior treatment effect is generally not as stable as the uniform prior. In addition, the coverage of the nesting effect under the two prior conditions is above 89%, which is excellent. However, the coverage of the two prior nesting effects is very low. Among them, the minimum nesting effect coverage rate under the gamma prior condition is 57.58%, and the minimum nesting effect coverage rate under the uniform prior condition is 80.16%. This is when the number of treatment groups is 16, the trial number of each group is 20, and the ICC is 0.05 under the treatment conditions. Combining the coverage of the two prior nesting effects under other conditions, it can be seen that ICC under the treatment conditions can affect the confidence interval coverage of the nesting effect more than the number of treatment groups and the number of subjects in each group. Moreover, with the increase of ICC under the treatment conditions, the coverage rate of the gamma prior nesting effect is higher than that of the uniform prior.In terms ofbias, the estimation accuracy of treatment effects under the condition of the gamma prior is higher than that of the uniform prior. Among them, the mean value of the treatment effect under the gamma prior condition is −69, the median value is −56, the minimum value is −171, and the maximum value is −6. The mean value of the treatment effect under the uniform prior condition is −101, the median value is −76, the minimum value is −301, and the maximum value is −23. The mean value of the nesting effect under the gamma prior condition is −143, the median value is −147, the minimum value is −398, the maximum value is 59, the mean value of the nesting effect under the uniform prior condition is 485, and the median value is 357. The minimum value is −291, and the maximum value is 1979. For the treatment effect, both prior conditions are underestimated; for the nesting effect, the uniform prior condition is mostly overestimated, and the underestimation occurred when the ICC is 0.05 under the treatment condition, and both underestimation and overestimation occur under the gamma prior condition when the ICC is 0.15 under the treatment conditions. In addition, as the number of treatment groups or the number of subjects in each group and ICC increases, compared with the uniform prior, the bias value of the treatment effect and nesting effect estimated by the gamma prior is smaller, and the change is also smaller. It is estimated that the result is more stable, indicating that the gamma prior estimation result is better than the uniform prior estimation result.In terms of the RMSE, the estimation accuracy of the nesting effect under the gamma prior condition is lower than that of the uniform prior, and the estimation accuracy of the treatment effect is similar to that of the uniform prior. Among them, the average value of the treatment effect under the gamma prior condition is 79, the median value is 78, the minimum value is 46, and the maximum value is 125. The average value of the treatment effect under the uniform prior condition is 79, the median value is 77, and the minimum value is 45, and the maximum value is 123. The mean value of the nesting effect under the gamma prior condition is 30, the median value is 29, the minimum value is 25, and the maximum value is 40. The mean value of the nesting effect under the uniform prior condition is 65, the median value is 47, the minimum value is 26, and the maximum value is 198. In addition, as the number of treatment groups or the number of subjects per group and ICC increases, compared with the uniform prior, the estimated RMSE value of the treatment effect and the nesting effect of the gamma prior is smaller, and the change is also smaller. It is estimated that the result is more stable, indicating that the gamma prior estimation result is better than the uniform prior estimation result.


### 3.2. The Estimation Accuracy Results of Treatment Effects and Nesting Effects for the SSIND under Different Treatment Groups

According to Tables1–3, under the condition of a different number of treatment groups, the results of treatment effect and nesting effect estimation are different. The result is shown in Figure 1.Figure 1
Comparison of estimation results of treatment and nesting effects for the SSIND under different treatment groups. Note: the dotted line represents the estimation result of the gamma prior, and the solid line represents the estimation result of the uniform prior.
(a)(b)(c)(d)(e)(f)(g)(h)As the number of treatment groups decreases, in terms of convergence rate, the convergence rate of the uniform prior treatment effects decreases slightly, but the convergence rate of the gamma prior treatment effects has been stable at a high level. In addition, the convergence rate of the two prior nesting effects has been improved, but the convergence rate of the uniform prior nesting effect is generally higher than that of the gamma prior. In terms of coverage, the coverage of treatment effects and nesting effects under gamma prior conditions has increased, but the coverage of uniform prior treatment effects and nesting effects has been stable at a higher level and more stable.In terms ofbias, the estimation accuracy of the treatment effect of the two prior setting methods is stable at a relatively high level. However, the bias value when the treatment effect is estimated by the gamma prior is generally higher than the bias value under the uniform prior condition, and the estimation result is more stable. In addition, the uniform prior has a significant reduction in the estimation accuracy of the nesting effect, and the gamma prior has a slight increase in the estimation accuracy of the nesting effect. However, the bias value estimated by the gamma before the nesting effect is smaller than that of the uniform prior, and the estimation result is more stable. This shows that as the number of treatment groups decreases, the estimation results of the treatment effect and nesting effect of the gamma prior are more stable and better than those of the uniform prior.In terms of the RMSE, the RMSE value of the treatment effect estimated by the gamma prior is similar to the uniform prior in different numbers of treatment groups. In addition, as the number of treatment groups decreases, the estimation accuracy of the nesting effect by the uniform prior has been significantly reduced, and the estimation accuracy of the gamma prior for the nesting effect has been stable at a relatively high level. Moreover, the RMSE value estimated by the gamma prior for the nesting effect is generally smaller than the RMSE value under the uniform prior condition, and the estimation result is more stable. Generally, as the number of treatment groups decreases, the gamma prior setting method performs similarly to the uniform prior in the estimation accuracy of the treatment effects and outperforms the uniform prior in the estimation accuracy of the nesting effects.As the number of treatment groups increases, the convergence rate of the uniform prior treatment effect increases, but the convergence rate of the gamma prior treatment effect changes less in different treatment groups, and the estimation result has been stable at a higher level. Among these, the convergence rate of the gamma before the treatment effect is between 97.26 and 97.54, and the convergence rate of the uniform before the treatment effect is between 96.53 and 97.29. When the number of treatment groups is 16, the convergence rate of the uniform prior treatment effect is essentially the same as the convergence rate of the gamma prior. This shows that as the number of treatment groups increases, the gamma prior setting method performs better than the uniform prior in the convergence rate of treatment effects.With the increase in the number of treatment groups, the convergence rate of the nesting effect under the two prior conditions has a certain downward trend in the number of different treatment groups. However, the convergence rate of the nesting effect is still stable at a relatively high level in general. Among these, the convergence rate of the gamma before the nesting effect is between 97.33 and 98.30, and the convergence rate of the uniform prior to the nesting effect is between 98.53 and 99.59. The convergence rate of the nesting effect under the two prior conditions dropped by nearly one percentage point, but the convergence rate of the uniform prior nesting effect is slightly better than that of the gamma prior in the different treatment groups. This shows that as the number of treatment groups increases, the uniform prior setting method performs better than the gamma prior in the convergence rate of the nesting effect.As the number of treatment groups increases, the coverage of treatment effects under the two prior conditions decreases slightly, but the coverage rate of the uniform prior treatment effect is slightly better than the gamma prior performance on different treatment groups. Among them, the coverage rate of the gamma prior to the treatment effect is between 92.39 and 93.74, and the coverage rate of the uniform prior to the treatment effect is between 95.68 and 98.25. When the number of treatment groups is 16, the coverage rate of the gamma prior treatment effect rebounds slightly. This shows that as the number of treatment groups increases, the uniform prior setting method performs better than the gamma prior in the coverage of treatment effects.As the number of treatment groups increases, the coverage of nesting effects under the two prior conditions shows a downward trend. However, the magnitude of the decrease in the gamma prior is more obvious than that of the uniform prior. Among them, the coverage rate of the gamma prior to the nesting effect is between 84.53 and 94.29, and the coverage rate of the uniform prior to the nesting effect is between 92.01 and 93.73. Under the conditions of many treatment groups, the coverage rate of the uniform prior nesting effect is higher than that of the gamma prior. Among them, when the number of treatment groups is 16, the coverage rate of the uniform prior nesting effect is 92.01, which is higher than the gamma prior of 84.53. However, under the condition that the number of treatment groups is small, the coverage rate of the gamma prior nesting effect is slightly higher than that of the uniform prior. Among them, when the number of treatment groups is 8, the coverage rate of the gamma prior nesting effect is 94.29, which is higher than the uniform prior of 93.73. This shows that under the conditions of a small number of treatment groups, the gamma prior setting method performs better than the uniform prior in the convergence rate of the nesting effect; under the conditions of many treatment groups, the gamma prior setting method used in the convergence rate of the nesting effect is not as good as the uniform prior.With the increase in the number of treatment groups, the estimation accuracy of the bias value of the treatment effects of the two prior setting methods has been significantly improved. Moreover, the bias value of the treatment effect estimated by the gamma prior is higher than the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the bias value estimated by the gamma prior for the treatment effect is between −106 and −31, and the bias value estimated by the uniform prior for the treatment effect is between −178 and −40. This shows that as the number of treatment groups increases, wasthe gamma prior setting method performs better than the uniform prior in the estimation accuracy of treatment effects.With the increase in the number of treatment groups, the estimation accuracy of the nesting effect by the uniform prior is significantly improved, and the estimation accuracy of the nesting effect by the gamma prior is slightly decreased. However, thebias value estimated by the gamma before the nesting effect was smaller than that uniform prior to different treatment groups, and the estimation result was more stable. Among them, the bias value estimated by the gamma prior for the nesting effect is between −172 and −107, and the bias value estimated by the uniform prior for the nesting effect is between 120 and 1007. The bias value of the uniform prior estimation of the nesting effect is significantly reduced when the number of treatment groups is large, indicating that the number of treatment groups has a greater influence on the bias value of the uniform prior estimation of the nesting effect. Generally, as the number of treatment groups increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.With the increase in the number of treatment groups, the estimation accuracy of the treatment effects of the two prior setting methods has been significantly improved. Moreover, the RMSE value of the treatment effect estimated by the gamma prior is similar to the uniform prior in the number of different treatment groups. Among them, the RMSE value estimated by the gamma prior to the treatment effect is between 66 and 95, and the RMSE value estimated by the uniform prior to the treatment effect is between 65 and 94. This shows that as the number of treatment groups increases, the gamma prior setting method performs similarly to the uniform prior in the estimation accuracy of treatment effects.With the increase in the number of treatment groups, the estimation accuracy of the nesting effect by the uniform prior has been significantly improved, and the estimation accuracy of the nesting effect by the gamma prior has been stable at a relatively high level. Moreover, the RMSE value estimated by the gamma before the nesting effect is smaller than the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the RMSE value estimated by the gamma prior for the nesting effect is between 30 and 31, and the RMSE value estimated by the uniform prior for the nesting effect is between 37 and 107. The RMSE value of the nesting effect estimated by the uniform prior is significantly reduced when the number of treatment groups is large, indicating that the number of treatment groups has a greater influence on the RMSE value of the nesting effect estimated by the uniform prior. Generally, as the number of treatment groups increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.


### 3.3. The Estimation Accuracy Results of Treatment Effects and Nesting Effects for the SSIND under Different Number of Subjects in Each Group

According to Tables1–3, under the condition of a different numbers of subjects in each group, different prior setting methods have different performances on the estimation of the treatment effect and nesting effect. The result is shown in Figure 2.Figure 2
Comparison of estimation results of treatment and nesting effects for the SSIND under different number of subjects in each group. Note: the dotted line represents the estimation result of the gamma prior, and the solid line represents the estimation result of the uniform prior.
(a)(b)(c)(d)(e)(f)(g)(h)As the number of subjects in each group decreases, in terms of convergence rate, the convergence rate of the gamma prior treatment effect has been stable at a relatively high level and is higher than that of the uniform prior. However, the convergence rate of the uniform prior nesting effect is higher than that of the gamma prior, and it is generally more stable. In terms of coverage, the coverage of treatment effects and nesting effects under the two prior conditions is slightly improved, but the coverage of uniform prior treatment effects and nesting effects under different treatment groups is higher and more stable overall than that of gamma priors.In terms ofbias, the estimation accuracy of the treatment effect of the two prior setting methods is stable at a relatively high level. However, the bias value when the treatment effect is estimated by the gamma prior is generally higher than the bias value under the uniform prior condition, and the estimation result is more stable. In addition, the estimation accuracy of the nesting effect by the uniform prior is significantly reduced, the bias value of the nesting effect estimation by the gamma prior is smaller than that of the uniform prior, and the estimation result is more stable. This shows that as the number of subjects in each group decreases, the estimation results of the treatment effect and nesting effect of the gamma prior are more stable and better than those of the uniform prior.In terms of the RMSE, the RMSE value of the treatment effect estimated by the gamma prior is similar to the uniform prior in different numbers of treatment groups. In addition, as the number of subjects in each group decreases, the estimation accuracy of the nesting effect by the uniform prior was significantly reduced, and the estimation accuracy of the gamma prior for the nesting effect has been stable at a relatively high level. Moreover, the RMSE value estimated by the gamma prior for the nesting effect is generally smaller than the RMSE value under the uniform prior condition, and the estimation result is more stable. Generally, as the number of subjects in each group decreases, the gamma prior setting method performs similarly to the uniform prior in the estimation accuracy of the treatment effects and outperforms the uniform prior in the estimation accuracy of the nesting effects.As the number of subjects in each group increases, the convergence rate of the treatment effect under the two prior conditions is slightly improved, but the convergence rate of the gamma prior treatment effect is generally higher than that of the uniform prior. Among these, the convergence rate of the gamma before the treatment effect is between 97.31 and 97.52, and the convergence rate of the uniform before the treatment effect is between 96.86 and 97.21. When the number of subjects in each group gradually increased to 15, the convergence rate of the uniform prior treatment effect steadily increased. When the number of subjects in each group increased to 20, the convergence rate of the uniform prior treatment effect suddenly decreased slightly. This shows that as the number of subjects in each group increases, the gamma prior setting method performs better than the uniform prior in the convergence rate of treatment effects.As the number of subjects in each group increases, the convergence rate of the nesting effect under the two prior conditions is slightly improved in the number of different treatment groups, but the convergence rate of the uniform prior nesting effect is generally higher than that of the gamma prior. Among these, the convergence rate of the gamma before the nesting effect is between 97.43 and 98.10; the convergence rate of the uniform prior to the nesting effect is between 98.91 and 99.16. When the number of subjects in each group gradually increased to 10, the convergence rate of the uniform prior nesting effect reached the maximum of 99.16 and then decreased. This shows that as the number of subjects in each group increases, the uniform prior setting method performs better than the gamma prior in the convergence rate of the nesting effect.With an increase in the number of subjects in each group, the coverage rate of the treatment effect of gamma prior increased slightly, and the coverage rate of the treatment effect under uniform prior conditions has been stable at a high level, and the upper level is higher than that of the gamma prior in different subjects. Among them, the coverage rate of the treatment effect of the gamma prior is between 92.69 and 93.29; the coverage rate of the uniform before the treatment effect is between 96.31 and 97.17. This shows that as the number of subjects in each group increases, the uniform prior setting method performs better than the gamma prior in the coverage of treatment effects.With an increase in the number of subjects in each group, the coverage of nesting effects under the two previous conditions decreased slightly. However, the magnitude of the decrease in the gamma prior is more obvious than that of the uniform prior. Among them, the coverage rate of the gamma prior to the nesting effect is between 84.28 and 96.27, and the coverage rate of the uniform prior to the nesting effect is between 91.63 and 94.53. Under the condition that the number of subjects in each group is large, the coverage rate of the uniform prior nesting effect is higher than that of the Gamma prior. Among them, when the number of subjects in each group is 20, the coverage rate of the uniform prior nesting effect is 91.63, which is higher than the gamma prior of 84.28. However, under the condition that the number of subjects in each group is small, the coverage rate of the gamma prior nesting effect is higher than that of the uniform prior. Among them, when the number of subjects in each group is 5, the coverage rate of the gamma prior to the nesting effect is 96.27, which is higher than the uniform prior of 94.53. This shows that under the condition that the number of subjects in each group is small, the gamma prior setting method performs better than the uniform prior in the coverage of nesting effects; under the condition that the number of subjects in each group is large, the gamma prior is not as good as the uniform prior in the coverage of nesting effects.With the increase in the number of subjects in each group, the estimation accuracy of the bias value of the treatment effect of the two prior setting methods has been significantly improved. Moreover, the bias value of the treatment effect estimated by the gamma prior is smaller than that of the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the bias value estimated by the gamma prior for the treatment effect is between −102 and −47, and the bias value estimated by the uniform prior for the treatment effect is between −154 and −64. This shows that as the number of subjects in each group increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of treatment effects.With the increase in the number of subjects in each group, the estimation accuracy of the nesting effect by the uniform prior is significantly improved, and the estimation accuracy of the nesting effect by the gamma prior is slightly decreased. However, the bias value estimated by the gamma before the nesting effect is smaller than that of the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the bias value estimated by the gamma prior for the nesting effect is between −160 and −130, and the bias value estimated by the uniform prior for the nesting effect is between 252 and 874. The bias value of the uniform prior estimation of the nesting effect effect decreases significantly when the number of subjects in each group is large, indicating that the number of subjects in each group had a greater influence on the bias value of the uniform prior estimation of the nesting effect. Generally, as the number of subjects in each group increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.With the increase in the number of subjects in each group, the estimation accuracy of the RMSE value of the treatment effect of the two prior setting methods has been significantly improved. Moreover, the RMSE value of the treatment effect estimated by the gamma prior is similar to that of the uniform prior in the number of different treatment groups. Among them, the RMSE value of the treatment effect estimated by the gamma prior is between 66 and 100, and the RMSE value estimated by the uniform prior for the treatment effect is between 65 and 99. Under the condition that the number of subjects in each group is 20, the two prior setting methods have the smallest RMSE value for the treatment effect estimation. This shows that as the number of subjects in each group increases, the gamma prior setting method performs similarly to the uniform prior in the estimation accuracy of treatment effects.With the increase in the number of subjects in each group, the estimation accuracy of the RMSE value of the nesting effect by the uniform prior has been significantly improved, and the estimation accuracy of the nesting effect by the gamma prior has been stable at a high level. Moreover, the RMSE value estimated by the gamma before the nesting effect is smaller than that of the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the RMSE value estimated by the gamma prior for the nesting effect is stable at around 30, and the RMSE value estimated by the uniform prior for the nesting effect is between 49 and 94. The RMSE value of the nesting effect estimated by the uniform prior is significantly reduced when the number of subjects in each group is large, indicating that the number of subjects in each group has a greater influence on the RMSE value of the nesting effect estimated by the uniform prior. Generally, as the number of subjects in each group increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.


### 3.4. The Estimation Accuracy Results of Treatment Effects and Nesting Effects for the SSIND under Different ICCs

According to Tables1–3, under the conditions of different treatment conditions ICC, different prior setting methods have different performances on the estimation of the treatment effect and nesting effect. The result is shown in Figure 3.Figure 3
Comparison of estimation results of treatment and nesting effects for the SSIND under different treatment conditions ICC. Note: the dotted line represents the estimation result of the gamma prior, and the solid line represents the estimation result of the uniform prior.
(a)(b)(c)(d)(e)(f)(g)(h)The ICC under treatment conditions is also an important factor affecting the estimation accuracy of treatment effects and nesting effects parameters. With the increase of ICC under treatment conditions, in terms of convergence rate, the convergence rate of the treatment effect and nesting effect under the two prior conditions does not change significantly. However, the convergence rate of the gamma prior treatment effect is generally higher than that of the uniform prior, and the convergence rate of the gamma prior nesting effect is generally lower than that of the uniform prior. In terms of coverage, compared with the gamma prior, the coverage of treatment effects and nesting effects under uniform prior conditions does not change significantly and is stable at a relatively high level.In terms ofbias and RMSE, the bias value, and RMSE values of the treatment effect under the two prior conditions have a slight increasing trend, but in general, the bias value and RMSE values of the treatment effect under the gamma prior are smaller, and the performance is slightly better than the uniform prior. In addition, the bias value and RMSE value of the nesting effect under the uniform prior have a significant increasing trend, while the gamma prior estimating the bias value and the RMSE value of the nesting effect have a decreasing trend, and they are generally smaller and more stable. This shows that the carefully selected gamma prior performs better than the uniform prior.As the ICC increases, the convergence rate of the uniform prior treatment effect increases slightly under different ICC conditions, and the convergence rate of the gamma prior treatment effect has been stable at a relatively high level. Among these, the convergence rate of the gamma before the treatment effect is between 97.42 and 97.44, and the convergence rate of the uniform prior to the treatment effect is between 96.88 and 97.06, and the overall performance is not as good as the gamma prior. This shows that with the increase of ICC, the gamma prior setting method performs better than the uniform prior in the convergence rate of treatment effects.With the increase of ICC, the convergence rate of the nesting effect under the two prior conditions is slightly improved on different ICCs, but the convergence rate of the uniform prior nesting effect is generally higher than that of the gamma prior. Among these, the convergence rate of the gamma before the nesting effect is between 97.70 and 97.88; the convergence rate of the uniform prior to the nesting effect is between 99.03 and 99.08. When the ICC is 0.1, the two prior setting methods both perform their best, and then slightly decrease. This shows that with the increase of ICC, the uniform prior setting method performs better than the gamma prior in the convergence rate of the nesting effect.With the increase of ICC, the coverage rate of treatment effects under the gamma prior condition decreases slightly, while the coverage rate of uniform prior treatment effects is at a higher level in different ICC and is higher than that of the gamma prior condition. Among them, the coverage rate of the gamma prior treatment effect is between 92.41 and 93.62; the coverage rate of the uniform prior treatment effect is between 96.67 and 96.98. This shows that with the increase of ICC, the gamma prior setting method is not as good as the uniform prior in the coverage of treatment effects.With the increase of ICC, the coverage rate of the uniform prior nesting effect decreases, and the coverage rate of the gamma prior nesting effect increases significantly. Among these, the coverage rate of the gamma prior to the nesting effect is between 81.94 and 94.68, and the coverage rate of the uniform prior to the nesting effect is between 91.33 and 94.97. Under the condition of a small ICC, the coverage rate of the uniform prior nesting effect is higher than that of the gamma prior. Among them, when the ICC is 0.05, the coverage rate of the uniform prior nesting effect is 93.37, which is higher than the 81.94 of the gamma prior. However, under the condition of a large ICC, the coverage rate of the gamma prior nesting effect is higher than that of the uniform prior. Among them, when the ICC is 0.15, the coverage rate of the gamma prior nesting effect is 94.68, which is higher than 91.33 for the uniform prior. This shows that under the condition of a small ICC, the gamma prior setting method is not as good as the uniform prior in the coverage of the nesting effect; under the condition of a large ICC, the gamma prior setting method is more effective in the nesting effect.With the increase of ICC, the estimation accuracy of the bias value of the treatment effects of the two prior setting methods has been significantly improved. Moreover, the bias value of the treatment effect estimated by the gamma prior is higher than the uniform prior in different ICC, and the estimation result is more stable. Among them, the bias value estimated by the gamma prior for the treatment effect is between −75 and −64, and the bias value estimated by the uniform prior for the treatment effect is between −115 and −89. This shows that with the increase of ICC, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of treatment effects.As ICC increases, the estimation accuracy of the bias value of the nesting effect by the uniform prior is significantly reduced, and the estimation accuracy of the nesting effect by the gamma prior is significantly improved. In addition, under the condition that the ICC is small, the uniform prior has a better estimation accuracy for the nesting effect than the gamma prior. However, under the condition of a large ICC, the estimation accuracy of the gamma prior on the nesting effect is better than that of the uniform prior, which shows that under the conditions of a large ICC, the performance of the gamma prior is better than that of the uniform prior. Among them, when ICC is 0.1 and 0.15, the bias values of the gamma prior for nesting effect estimation are −148 and 27, which are smaller than 478 and 824 of the uniform prior. Generally, with the increase of ICC, the gamma prior setting method performs better than the uniform prior under the estimation accuracy of the nesting effect.With the increase of ICC, the estimation accuracy of the RMSE of the treatment effect of the two prior setting methods is slightly reduced. Moreover, the RMSE value of the treatment effect estimated by the gamma prior is similar to the uniform prior under different ICC conditions. Among them, the RMSE value of the treatment effect estimated by the gamma prior is between 72 and 86, and the RMSE value estimated by the uniform prior for the treatment effect is between 72 and 85. This shows that with the increase of ICC, the gamma prior setting method is similar to the uniform prior in the estimation accuracy of treatment effects.With the increase of ICC, the estimation accuracy of the RMSE of the nesting effect by the uniform prior was significantly reduced, and the estimation accuracy of the gamma prior to the nesting effect was stable at a relatively high level. Moreover, the RMSE value estimated by the gamma before the nesting effect is smaller than the uniform prior in different ICC, and the estimation result is more stable. Among them, the RMSE value estimated by the gamma prior for the nesting effect is between 27 and 35, and the RMSE value estimated by the uniform prior for the nesting effect is between 44 and 89. The RMSE value of the nesting effect estimated by the uniform prior has a significant increase when the ICC is large, indicating that the ICC has a greater impact on the RMSE value of the nesting effect estimated by the uniform prior. Generally, with the increase of ICC, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.


### 3.5. Suggestions for the Use of Prior Setting for the SSIND in a Multilevel Model

This paper uses simulation research to explore the performance of gamma priors and uniform priors in estimating treatment effects and nesting effects in a multilevel model and comprehensively compares the performance of these two methods in the model on the four evaluation indicators of the convergence rate, coverage rate,bias, and root-mean-square error. The performance and the detailed recommendations for the use of a prior setting are shown in Table 5.Table 5
Summary table of applicable conditions for a prior setting for the SSIND.
Condition combinationICC = 0.05ICC = 0.10ICC = 0.15c = 8c = 12c = 16c = 8c = 12c = 16c = 8c = 12c = 16m = 5GUUGGUGGGm = 10GUUGGUGGUm = 15GUUUGUGGGm = 20UUUGUUGGGNote. “G” means that gamma performs better, and “U” means that uniform performs better.As shown in Table5, this article recommends using the gamma prior when the number of treatment groups is small (8), and the uniform prior can be used when the number of treatment groups is large (16). When the treatment condition ICC is large (0.15), the gamma prior is used, and when the treatment condition ICC is small (0.05), the uniform prior can be used.


## 3.1. Estimated Accuracy Results of Treatment Effects and Nesting Effects for the SSIND under All Operating Conditions

The estimation accuracy results of treatment effects and nesting effects are presented under all operating conditions. Thebias and root-mean-square error (RMSE) of the model convergence rate, confidence interval coverage, the treatment effect, and nesting effect estimation under 72 operating conditions are shown in Tables 1–3.Table 1
Estimated accuracy results of treatment effects and nesting effects for the SSIND under all operating conditions (c = 8).
The number of subjects in each groupICCPrior settingConvergence rateCoverBiasRMSETreatmentNestingTreatmentNestingTreatmentNestingTreatmentNestingEffectEffectEffectEffectEffectEffectEffectEffect50.05U96.198.898.0294.94−2451338113134G97.697.993.7597.55−171−186114270.10U9799.698.5694.38−2721656118166G97.898.493.7697.76−156−96121270.15U96.799.498.2491.65−3011979123198G97.197.692.0796.72−169−312529100.05U9699.698.4495.78−1775828865G97.398.795.1795.85−114−11488320.10U96.999.598.1495.18−19398297102G97.898.393.7696.64−103−12098290.15U96.799.598.3589.15−1941433104146G9898.192.8696.94−1053310632150.05U96.399.999.1796.4−1213097345G97.797.794.6890.79−86−30373330.10U97.210098.8796.2−1457678484G9798.494.4394.11−108−11984270.15U96.399.898.4489.18−190124293128G96.398.894.0894.43−100599330200.05U96.999.697.9496.89−841386837G9898.294.1884.52−40−33468360.10U96.699.897.5295.29−885977970G98.199.194.0992.03−55−14279280.15U96.599.697.3189.76−120106188112G97.898.492.0294.11−68448830Table 2
Estimated accuracy results of treatment effects and nesting effects for the SSIND under all operating conditions (c = 12).
The number of subjects in each groupICCPrior settingConvergence rateCoverBiasRMSETreatmentNestingTreatmentNestingTreatmentNestingTreatmentNestingEffectEffectEffectEffectEffectEffectEffectEffect50.05U96.998.897.4296.66−1483859047G96.897.193.4996.19−132−25391310.10U97.399.397.6495.87−1396239467G98.297.993.5897.96−102−13794280.15U96.498.996.9991.41−1538999893G97.597.291.4997.12−125−1410030100.05U96.798.996.2896.66−72−37130G98.197.592.9784.72−55−32671360.10U96.699.196.3894.35−803157746G97.897.691.6293.24−59−15478290.15U9799.295.7791.03−936418372G97.198.392.7994.51−72318331150.05U98.299.597.1596.28−44−1206127G97.798.292.7376.48−26−35461370.10U97.39996.495.66−392047038G96.998.292.8889.21−32−15269270.15U97.398.996.6191.61−525517763G97.696.791.3994.31−43517728200.05U96.398.996.1690.6−44−1935628G97.297.492.769.82−51−37557380.10U96.898.795.4594.33−621456634G97.597.991.7989.17−60−16066250.15U97.69995.792.63−904907457G97.498.191.2793.07−64497426Table 3
Estimated accuracy results of treatment effects and nesting effects for the SSIND under all operating conditions (c = 16).
The number of subjects in each groupICCPrior settingConvergence rateCoverBiasRMSETreatmentNestingTreatmentNestingTreatmentNestingTreatmentNestingEffectEffectEffectEffectEffectEffectEffectEffect50.05U97.798.596.2197.46−451058030G96.596.892.3392.67−6−28580330.10U9798.595.8896.04−423148444G96.59792.1294.23−31−17184290.15U96.698.495.5592.38−435638864G97.89791.6296.19−23−268930100.05U96.69996.7993.03−23−1595928G96.997.494.2273.1−25−36160380.10U97.698.996.4195.55−351026532G97.296.893.3187.3−25−17864280.15U97.898.795.9191.79−423877050G97.597.192.9292.48−43167127150.05U97.398.194.6685.52−37−2575430G97.997.292.6564−39−39154400.10U97.398.194.4594.7−54286128G98.197.292.0585.49−40−17861260.15U97.798.395.592.47−673296744G97.597.792.8293.14−57366726200.05U97.598.895.4980.16−25−2914532G97.498.394.5657.58−21−39846400.10U96.398.495.5392.07−3055226G96.497.893.8885.07−33−17253250.15U98.198.695.7292.9−323135941G97.497.793.5393.14−28466025According to Tables1–3, summarize and present the estimation accuracy results of treatment effects and nesting effects under all operating conditions (see Table 4).Table 4
Summary of estimation accuracy of treatment effects and nesting effects for the SSIND under all operating conditions.
Prior settingConvergence rateCoverBiasRMSETreatment effectNest effectTreatment effectNest effectTreatment effectNest effectTreatment effectNest effectMean valueU97.099.096.8193.22−1014857965G97.497.893.0489.49−69−1437930Median valueU96.999.096.5194.34−763577747G97.597.892.9093.14−56−1477829Minimum valueU96.098.194.4580.16−301−2914526G96.396.791.2757.58−171−3984625Maximum valueU98.2100.099.1797.46−231979123198G98.299.195.1797.96−65912540Note. “G” means gamma prior, and “U” means uniform prior.According to Table4, on the whole, in terms of convergence rate, the average value of the treatment effect under the gamma prior condition is 97.4%, the median value is 97.5%, the minimum value is 96.3%, and the maximum value is 98.2%. The average value of the treatment effect under the uniform is 97.0%, the median is 96.9%, the minimum is 96.0%, and the maximum is 98.2%. The mean value of the nesting effect under the gamma prior condition is 97.8%, the median value is 97.8%, the minimum value is 96.7%, the maximum value is 99.1%, the mean value of the nesting effect under the uniform prior condition is 99.0%, the median value is 99.0%, the minimum value is 98.1%, and the maximum value is 100%. Under the two prior conditions, the convergence rate is more than 96% and relatively concentrated, and the performance is very good, but the convergence rate of the gamma prior treatment effect is generally more stable than the uniform prior, and the convergence rate of the nesting effect is generally not as stable as the uniform prior.In terms of confidence interval coverage, the mean value of the treatment effect under the gamma prior condition is 93.04%, the median value is 92.9%, the minimum value is 91.27%, and the maximum value is 95.17%. The mean value of the treatment effect under the uniform prior condition is 96.81%, the median is 96.51%, the minimum is 94.45%, and the maximum is 99.17%. The mean value of the nesting effect under the gamma prior condition is 89.49%, the median value is 93.14%, the minimum value is 57.58%, and the maximum value is 97.96%. The mean value of nesting effects under uniform prior conditions is 93.22%, the median value is 94.34%, the minimum value is 80.16%, and the maximum value is 97.46%. The coverage of the treatment effect under the two prior conditions is above 91%, which is very good, but the coverage of the gamma prior treatment effect is generally not as stable as the uniform prior. In addition, the coverage of the nesting effect under the two prior conditions is above 89%, which is excellent. However, the coverage of the two prior nesting effects is very low. Among them, the minimum nesting effect coverage rate under the gamma prior condition is 57.58%, and the minimum nesting effect coverage rate under the uniform prior condition is 80.16%. This is when the number of treatment groups is 16, the trial number of each group is 20, and the ICC is 0.05 under the treatment conditions. Combining the coverage of the two prior nesting effects under other conditions, it can be seen that ICC under the treatment conditions can affect the confidence interval coverage of the nesting effect more than the number of treatment groups and the number of subjects in each group. Moreover, with the increase of ICC under the treatment conditions, the coverage rate of the gamma prior nesting effect is higher than that of the uniform prior.In terms ofbias, the estimation accuracy of treatment effects under the condition of the gamma prior is higher than that of the uniform prior. Among them, the mean value of the treatment effect under the gamma prior condition is −69, the median value is −56, the minimum value is −171, and the maximum value is −6. The mean value of the treatment effect under the uniform prior condition is −101, the median value is −76, the minimum value is −301, and the maximum value is −23. The mean value of the nesting effect under the gamma prior condition is −143, the median value is −147, the minimum value is −398, the maximum value is 59, the mean value of the nesting effect under the uniform prior condition is 485, and the median value is 357. The minimum value is −291, and the maximum value is 1979. For the treatment effect, both prior conditions are underestimated; for the nesting effect, the uniform prior condition is mostly overestimated, and the underestimation occurred when the ICC is 0.05 under the treatment condition, and both underestimation and overestimation occur under the gamma prior condition when the ICC is 0.15 under the treatment conditions. In addition, as the number of treatment groups or the number of subjects in each group and ICC increases, compared with the uniform prior, the bias value of the treatment effect and nesting effect estimated by the gamma prior is smaller, and the change is also smaller. It is estimated that the result is more stable, indicating that the gamma prior estimation result is better than the uniform prior estimation result.In terms of the RMSE, the estimation accuracy of the nesting effect under the gamma prior condition is lower than that of the uniform prior, and the estimation accuracy of the treatment effect is similar to that of the uniform prior. Among them, the average value of the treatment effect under the gamma prior condition is 79, the median value is 78, the minimum value is 46, and the maximum value is 125. The average value of the treatment effect under the uniform prior condition is 79, the median value is 77, and the minimum value is 45, and the maximum value is 123. The mean value of the nesting effect under the gamma prior condition is 30, the median value is 29, the minimum value is 25, and the maximum value is 40. The mean value of the nesting effect under the uniform prior condition is 65, the median value is 47, the minimum value is 26, and the maximum value is 198. In addition, as the number of treatment groups or the number of subjects per group and ICC increases, compared with the uniform prior, the estimated RMSE value of the treatment effect and the nesting effect of the gamma prior is smaller, and the change is also smaller. It is estimated that the result is more stable, indicating that the gamma prior estimation result is better than the uniform prior estimation result.


## 3.2. The Estimation Accuracy Results of Treatment Effects and Nesting Effects for the SSIND under Different Treatment Groups

According to Tables1–3, under the condition of a different number of treatment groups, the results of treatment effect and nesting effect estimation are different. The result is shown in Figure 1.Figure 1
Comparison of estimation results of treatment and nesting effects for the SSIND under different treatment groups. Note: the dotted line represents the estimation result of the gamma prior, and the solid line represents the estimation result of the uniform prior.
(a)(b)(c)(d)(e)(f)(g)(h)As the number of treatment groups decreases, in terms of convergence rate, the convergence rate of the uniform prior treatment effects decreases slightly, but the convergence rate of the gamma prior treatment effects has been stable at a high level. In addition, the convergence rate of the two prior nesting effects has been improved, but the convergence rate of the uniform prior nesting effect is generally higher than that of the gamma prior. In terms of coverage, the coverage of treatment effects and nesting effects under gamma prior conditions has increased, but the coverage of uniform prior treatment effects and nesting effects has been stable at a higher level and more stable.In terms ofbias, the estimation accuracy of the treatment effect of the two prior setting methods is stable at a relatively high level. However, the bias value when the treatment effect is estimated by the gamma prior is generally higher than the bias value under the uniform prior condition, and the estimation result is more stable. In addition, the uniform prior has a significant reduction in the estimation accuracy of the nesting effect, and the gamma prior has a slight increase in the estimation accuracy of the nesting effect. However, the bias value estimated by the gamma before the nesting effect is smaller than that of the uniform prior, and the estimation result is more stable. This shows that as the number of treatment groups decreases, the estimation results of the treatment effect and nesting effect of the gamma prior are more stable and better than those of the uniform prior.In terms of the RMSE, the RMSE value of the treatment effect estimated by the gamma prior is similar to the uniform prior in different numbers of treatment groups. In addition, as the number of treatment groups decreases, the estimation accuracy of the nesting effect by the uniform prior has been significantly reduced, and the estimation accuracy of the gamma prior for the nesting effect has been stable at a relatively high level. Moreover, the RMSE value estimated by the gamma prior for the nesting effect is generally smaller than the RMSE value under the uniform prior condition, and the estimation result is more stable. Generally, as the number of treatment groups decreases, the gamma prior setting method performs similarly to the uniform prior in the estimation accuracy of the treatment effects and outperforms the uniform prior in the estimation accuracy of the nesting effects.As the number of treatment groups increases, the convergence rate of the uniform prior treatment effect increases, but the convergence rate of the gamma prior treatment effect changes less in different treatment groups, and the estimation result has been stable at a higher level. Among these, the convergence rate of the gamma before the treatment effect is between 97.26 and 97.54, and the convergence rate of the uniform before the treatment effect is between 96.53 and 97.29. When the number of treatment groups is 16, the convergence rate of the uniform prior treatment effect is essentially the same as the convergence rate of the gamma prior. This shows that as the number of treatment groups increases, the gamma prior setting method performs better than the uniform prior in the convergence rate of treatment effects.With the increase in the number of treatment groups, the convergence rate of the nesting effect under the two prior conditions has a certain downward trend in the number of different treatment groups. However, the convergence rate of the nesting effect is still stable at a relatively high level in general. Among these, the convergence rate of the gamma before the nesting effect is between 97.33 and 98.30, and the convergence rate of the uniform prior to the nesting effect is between 98.53 and 99.59. The convergence rate of the nesting effect under the two prior conditions dropped by nearly one percentage point, but the convergence rate of the uniform prior nesting effect is slightly better than that of the gamma prior in the different treatment groups. This shows that as the number of treatment groups increases, the uniform prior setting method performs better than the gamma prior in the convergence rate of the nesting effect.As the number of treatment groups increases, the coverage of treatment effects under the two prior conditions decreases slightly, but the coverage rate of the uniform prior treatment effect is slightly better than the gamma prior performance on different treatment groups. Among them, the coverage rate of the gamma prior to the treatment effect is between 92.39 and 93.74, and the coverage rate of the uniform prior to the treatment effect is between 95.68 and 98.25. When the number of treatment groups is 16, the coverage rate of the gamma prior treatment effect rebounds slightly. This shows that as the number of treatment groups increases, the uniform prior setting method performs better than the gamma prior in the coverage of treatment effects.As the number of treatment groups increases, the coverage of nesting effects under the two prior conditions shows a downward trend. However, the magnitude of the decrease in the gamma prior is more obvious than that of the uniform prior. Among them, the coverage rate of the gamma prior to the nesting effect is between 84.53 and 94.29, and the coverage rate of the uniform prior to the nesting effect is between 92.01 and 93.73. Under the conditions of many treatment groups, the coverage rate of the uniform prior nesting effect is higher than that of the gamma prior. Among them, when the number of treatment groups is 16, the coverage rate of the uniform prior nesting effect is 92.01, which is higher than the gamma prior of 84.53. However, under the condition that the number of treatment groups is small, the coverage rate of the gamma prior nesting effect is slightly higher than that of the uniform prior. Among them, when the number of treatment groups is 8, the coverage rate of the gamma prior nesting effect is 94.29, which is higher than the uniform prior of 93.73. This shows that under the conditions of a small number of treatment groups, the gamma prior setting method performs better than the uniform prior in the convergence rate of the nesting effect; under the conditions of many treatment groups, the gamma prior setting method used in the convergence rate of the nesting effect is not as good as the uniform prior.With the increase in the number of treatment groups, the estimation accuracy of the bias value of the treatment effects of the two prior setting methods has been significantly improved. Moreover, the bias value of the treatment effect estimated by the gamma prior is higher than the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the bias value estimated by the gamma prior for the treatment effect is between −106 and −31, and the bias value estimated by the uniform prior for the treatment effect is between −178 and −40. This shows that as the number of treatment groups increases, wasthe gamma prior setting method performs better than the uniform prior in the estimation accuracy of treatment effects.With the increase in the number of treatment groups, the estimation accuracy of the nesting effect by the uniform prior is significantly improved, and the estimation accuracy of the nesting effect by the gamma prior is slightly decreased. However, thebias value estimated by the gamma before the nesting effect was smaller than that uniform prior to different treatment groups, and the estimation result was more stable. Among them, the bias value estimated by the gamma prior for the nesting effect is between −172 and −107, and the bias value estimated by the uniform prior for the nesting effect is between 120 and 1007. The bias value of the uniform prior estimation of the nesting effect is significantly reduced when the number of treatment groups is large, indicating that the number of treatment groups has a greater influence on the bias value of the uniform prior estimation of the nesting effect. Generally, as the number of treatment groups increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.With the increase in the number of treatment groups, the estimation accuracy of the treatment effects of the two prior setting methods has been significantly improved. Moreover, the RMSE value of the treatment effect estimated by the gamma prior is similar to the uniform prior in the number of different treatment groups. Among them, the RMSE value estimated by the gamma prior to the treatment effect is between 66 and 95, and the RMSE value estimated by the uniform prior to the treatment effect is between 65 and 94. This shows that as the number of treatment groups increases, the gamma prior setting method performs similarly to the uniform prior in the estimation accuracy of treatment effects.With the increase in the number of treatment groups, the estimation accuracy of the nesting effect by the uniform prior has been significantly improved, and the estimation accuracy of the nesting effect by the gamma prior has been stable at a relatively high level. Moreover, the RMSE value estimated by the gamma before the nesting effect is smaller than the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the RMSE value estimated by the gamma prior for the nesting effect is between 30 and 31, and the RMSE value estimated by the uniform prior for the nesting effect is between 37 and 107. The RMSE value of the nesting effect estimated by the uniform prior is significantly reduced when the number of treatment groups is large, indicating that the number of treatment groups has a greater influence on the RMSE value of the nesting effect estimated by the uniform prior. Generally, as the number of treatment groups increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.


## 3.3. The Estimation Accuracy Results of Treatment Effects and Nesting Effects for the SSIND under Different Number of Subjects in Each Group

According to Tables1–3, under the condition of a different numbers of subjects in each group, different prior setting methods have different performances on the estimation of the treatment effect and nesting effect. The result is shown in Figure 2.Figure 2
Comparison of estimation results of treatment and nesting effects for the SSIND under different number of subjects in each group. Note: the dotted line represents the estimation result of the gamma prior, and the solid line represents the estimation result of the uniform prior.
(a)(b)(c)(d)(e)(f)(g)(h)As the number of subjects in each group decreases, in terms of convergence rate, the convergence rate of the gamma prior treatment effect has been stable at a relatively high level and is higher than that of the uniform prior. However, the convergence rate of the uniform prior nesting effect is higher than that of the gamma prior, and it is generally more stable. In terms of coverage, the coverage of treatment effects and nesting effects under the two prior conditions is slightly improved, but the coverage of uniform prior treatment effects and nesting effects under different treatment groups is higher and more stable overall than that of gamma priors.In terms ofbias, the estimation accuracy of the treatment effect of the two prior setting methods is stable at a relatively high level. However, the bias value when the treatment effect is estimated by the gamma prior is generally higher than the bias value under the uniform prior condition, and the estimation result is more stable. In addition, the estimation accuracy of the nesting effect by the uniform prior is significantly reduced, the bias value of the nesting effect estimation by the gamma prior is smaller than that of the uniform prior, and the estimation result is more stable. This shows that as the number of subjects in each group decreases, the estimation results of the treatment effect and nesting effect of the gamma prior are more stable and better than those of the uniform prior.In terms of the RMSE, the RMSE value of the treatment effect estimated by the gamma prior is similar to the uniform prior in different numbers of treatment groups. In addition, as the number of subjects in each group decreases, the estimation accuracy of the nesting effect by the uniform prior was significantly reduced, and the estimation accuracy of the gamma prior for the nesting effect has been stable at a relatively high level. Moreover, the RMSE value estimated by the gamma prior for the nesting effect is generally smaller than the RMSE value under the uniform prior condition, and the estimation result is more stable. Generally, as the number of subjects in each group decreases, the gamma prior setting method performs similarly to the uniform prior in the estimation accuracy of the treatment effects and outperforms the uniform prior in the estimation accuracy of the nesting effects.As the number of subjects in each group increases, the convergence rate of the treatment effect under the two prior conditions is slightly improved, but the convergence rate of the gamma prior treatment effect is generally higher than that of the uniform prior. Among these, the convergence rate of the gamma before the treatment effect is between 97.31 and 97.52, and the convergence rate of the uniform before the treatment effect is between 96.86 and 97.21. When the number of subjects in each group gradually increased to 15, the convergence rate of the uniform prior treatment effect steadily increased. When the number of subjects in each group increased to 20, the convergence rate of the uniform prior treatment effect suddenly decreased slightly. This shows that as the number of subjects in each group increases, the gamma prior setting method performs better than the uniform prior in the convergence rate of treatment effects.As the number of subjects in each group increases, the convergence rate of the nesting effect under the two prior conditions is slightly improved in the number of different treatment groups, but the convergence rate of the uniform prior nesting effect is generally higher than that of the gamma prior. Among these, the convergence rate of the gamma before the nesting effect is between 97.43 and 98.10; the convergence rate of the uniform prior to the nesting effect is between 98.91 and 99.16. When the number of subjects in each group gradually increased to 10, the convergence rate of the uniform prior nesting effect reached the maximum of 99.16 and then decreased. This shows that as the number of subjects in each group increases, the uniform prior setting method performs better than the gamma prior in the convergence rate of the nesting effect.With an increase in the number of subjects in each group, the coverage rate of the treatment effect of gamma prior increased slightly, and the coverage rate of the treatment effect under uniform prior conditions has been stable at a high level, and the upper level is higher than that of the gamma prior in different subjects. Among them, the coverage rate of the treatment effect of the gamma prior is between 92.69 and 93.29; the coverage rate of the uniform before the treatment effect is between 96.31 and 97.17. This shows that as the number of subjects in each group increases, the uniform prior setting method performs better than the gamma prior in the coverage of treatment effects.With an increase in the number of subjects in each group, the coverage of nesting effects under the two previous conditions decreased slightly. However, the magnitude of the decrease in the gamma prior is more obvious than that of the uniform prior. Among them, the coverage rate of the gamma prior to the nesting effect is between 84.28 and 96.27, and the coverage rate of the uniform prior to the nesting effect is between 91.63 and 94.53. Under the condition that the number of subjects in each group is large, the coverage rate of the uniform prior nesting effect is higher than that of the Gamma prior. Among them, when the number of subjects in each group is 20, the coverage rate of the uniform prior nesting effect is 91.63, which is higher than the gamma prior of 84.28. However, under the condition that the number of subjects in each group is small, the coverage rate of the gamma prior nesting effect is higher than that of the uniform prior. Among them, when the number of subjects in each group is 5, the coverage rate of the gamma prior to the nesting effect is 96.27, which is higher than the uniform prior of 94.53. This shows that under the condition that the number of subjects in each group is small, the gamma prior setting method performs better than the uniform prior in the coverage of nesting effects; under the condition that the number of subjects in each group is large, the gamma prior is not as good as the uniform prior in the coverage of nesting effects.With the increase in the number of subjects in each group, the estimation accuracy of the bias value of the treatment effect of the two prior setting methods has been significantly improved. Moreover, the bias value of the treatment effect estimated by the gamma prior is smaller than that of the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the bias value estimated by the gamma prior for the treatment effect is between −102 and −47, and the bias value estimated by the uniform prior for the treatment effect is between −154 and −64. This shows that as the number of subjects in each group increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of treatment effects.With the increase in the number of subjects in each group, the estimation accuracy of the nesting effect by the uniform prior is significantly improved, and the estimation accuracy of the nesting effect by the gamma prior is slightly decreased. However, the bias value estimated by the gamma before the nesting effect is smaller than that of the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the bias value estimated by the gamma prior for the nesting effect is between −160 and −130, and the bias value estimated by the uniform prior for the nesting effect is between 252 and 874. The bias value of the uniform prior estimation of the nesting effect effect decreases significantly when the number of subjects in each group is large, indicating that the number of subjects in each group had a greater influence on the bias value of the uniform prior estimation of the nesting effect. Generally, as the number of subjects in each group increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.With the increase in the number of subjects in each group, the estimation accuracy of the RMSE value of the treatment effect of the two prior setting methods has been significantly improved. Moreover, the RMSE value of the treatment effect estimated by the gamma prior is similar to that of the uniform prior in the number of different treatment groups. Among them, the RMSE value of the treatment effect estimated by the gamma prior is between 66 and 100, and the RMSE value estimated by the uniform prior for the treatment effect is between 65 and 99. Under the condition that the number of subjects in each group is 20, the two prior setting methods have the smallest RMSE value for the treatment effect estimation. This shows that as the number of subjects in each group increases, the gamma prior setting method performs similarly to the uniform prior in the estimation accuracy of treatment effects.With the increase in the number of subjects in each group, the estimation accuracy of the RMSE value of the nesting effect by the uniform prior has been significantly improved, and the estimation accuracy of the nesting effect by the gamma prior has been stable at a high level. Moreover, the RMSE value estimated by the gamma before the nesting effect is smaller than that of the uniform prior in different treatment groups, and the estimation result is more stable. Among them, the RMSE value estimated by the gamma prior for the nesting effect is stable at around 30, and the RMSE value estimated by the uniform prior for the nesting effect is between 49 and 94. The RMSE value of the nesting effect estimated by the uniform prior is significantly reduced when the number of subjects in each group is large, indicating that the number of subjects in each group has a greater influence on the RMSE value of the nesting effect estimated by the uniform prior. Generally, as the number of subjects in each group increases, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.


## 3.4. The Estimation Accuracy Results of Treatment Effects and Nesting Effects for the SSIND under Different ICCs

According to Tables1–3, under the conditions of different treatment conditions ICC, different prior setting methods have different performances on the estimation of the treatment effect and nesting effect. The result is shown in Figure 3.Figure 3
Comparison of estimation results of treatment and nesting effects for the SSIND under different treatment conditions ICC. Note: the dotted line represents the estimation result of the gamma prior, and the solid line represents the estimation result of the uniform prior.
(a)(b)(c)(d)(e)(f)(g)(h)The ICC under treatment conditions is also an important factor affecting the estimation accuracy of treatment effects and nesting effects parameters. With the increase of ICC under treatment conditions, in terms of convergence rate, the convergence rate of the treatment effect and nesting effect under the two prior conditions does not change significantly. However, the convergence rate of the gamma prior treatment effect is generally higher than that of the uniform prior, and the convergence rate of the gamma prior nesting effect is generally lower than that of the uniform prior. In terms of coverage, compared with the gamma prior, the coverage of treatment effects and nesting effects under uniform prior conditions does not change significantly and is stable at a relatively high level.In terms ofbias and RMSE, the bias value, and RMSE values of the treatment effect under the two prior conditions have a slight increasing trend, but in general, the bias value and RMSE values of the treatment effect under the gamma prior are smaller, and the performance is slightly better than the uniform prior. In addition, the bias value and RMSE value of the nesting effect under the uniform prior have a significant increasing trend, while the gamma prior estimating the bias value and the RMSE value of the nesting effect have a decreasing trend, and they are generally smaller and more stable. This shows that the carefully selected gamma prior performs better than the uniform prior.As the ICC increases, the convergence rate of the uniform prior treatment effect increases slightly under different ICC conditions, and the convergence rate of the gamma prior treatment effect has been stable at a relatively high level. Among these, the convergence rate of the gamma before the treatment effect is between 97.42 and 97.44, and the convergence rate of the uniform prior to the treatment effect is between 96.88 and 97.06, and the overall performance is not as good as the gamma prior. This shows that with the increase of ICC, the gamma prior setting method performs better than the uniform prior in the convergence rate of treatment effects.With the increase of ICC, the convergence rate of the nesting effect under the two prior conditions is slightly improved on different ICCs, but the convergence rate of the uniform prior nesting effect is generally higher than that of the gamma prior. Among these, the convergence rate of the gamma before the nesting effect is between 97.70 and 97.88; the convergence rate of the uniform prior to the nesting effect is between 99.03 and 99.08. When the ICC is 0.1, the two prior setting methods both perform their best, and then slightly decrease. This shows that with the increase of ICC, the uniform prior setting method performs better than the gamma prior in the convergence rate of the nesting effect.With the increase of ICC, the coverage rate of treatment effects under the gamma prior condition decreases slightly, while the coverage rate of uniform prior treatment effects is at a higher level in different ICC and is higher than that of the gamma prior condition. Among them, the coverage rate of the gamma prior treatment effect is between 92.41 and 93.62; the coverage rate of the uniform prior treatment effect is between 96.67 and 96.98. This shows that with the increase of ICC, the gamma prior setting method is not as good as the uniform prior in the coverage of treatment effects.With the increase of ICC, the coverage rate of the uniform prior nesting effect decreases, and the coverage rate of the gamma prior nesting effect increases significantly. Among these, the coverage rate of the gamma prior to the nesting effect is between 81.94 and 94.68, and the coverage rate of the uniform prior to the nesting effect is between 91.33 and 94.97. Under the condition of a small ICC, the coverage rate of the uniform prior nesting effect is higher than that of the gamma prior. Among them, when the ICC is 0.05, the coverage rate of the uniform prior nesting effect is 93.37, which is higher than the 81.94 of the gamma prior. However, under the condition of a large ICC, the coverage rate of the gamma prior nesting effect is higher than that of the uniform prior. Among them, when the ICC is 0.15, the coverage rate of the gamma prior nesting effect is 94.68, which is higher than 91.33 for the uniform prior. This shows that under the condition of a small ICC, the gamma prior setting method is not as good as the uniform prior in the coverage of the nesting effect; under the condition of a large ICC, the gamma prior setting method is more effective in the nesting effect.With the increase of ICC, the estimation accuracy of the bias value of the treatment effects of the two prior setting methods has been significantly improved. Moreover, the bias value of the treatment effect estimated by the gamma prior is higher than the uniform prior in different ICC, and the estimation result is more stable. Among them, the bias value estimated by the gamma prior for the treatment effect is between −75 and −64, and the bias value estimated by the uniform prior for the treatment effect is between −115 and −89. This shows that with the increase of ICC, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of treatment effects.As ICC increases, the estimation accuracy of the bias value of the nesting effect by the uniform prior is significantly reduced, and the estimation accuracy of the nesting effect by the gamma prior is significantly improved. In addition, under the condition that the ICC is small, the uniform prior has a better estimation accuracy for the nesting effect than the gamma prior. However, under the condition of a large ICC, the estimation accuracy of the gamma prior on the nesting effect is better than that of the uniform prior, which shows that under the conditions of a large ICC, the performance of the gamma prior is better than that of the uniform prior. Among them, when ICC is 0.1 and 0.15, the bias values of the gamma prior for nesting effect estimation are −148 and 27, which are smaller than 478 and 824 of the uniform prior. Generally, with the increase of ICC, the gamma prior setting method performs better than the uniform prior under the estimation accuracy of the nesting effect.With the increase of ICC, the estimation accuracy of the RMSE of the treatment effect of the two prior setting methods is slightly reduced. Moreover, the RMSE value of the treatment effect estimated by the gamma prior is similar to the uniform prior under different ICC conditions. Among them, the RMSE value of the treatment effect estimated by the gamma prior is between 72 and 86, and the RMSE value estimated by the uniform prior for the treatment effect is between 72 and 85. This shows that with the increase of ICC, the gamma prior setting method is similar to the uniform prior in the estimation accuracy of treatment effects.With the increase of ICC, the estimation accuracy of the RMSE of the nesting effect by the uniform prior was significantly reduced, and the estimation accuracy of the gamma prior to the nesting effect was stable at a relatively high level. Moreover, the RMSE value estimated by the gamma before the nesting effect is smaller than the uniform prior in different ICC, and the estimation result is more stable. Among them, the RMSE value estimated by the gamma prior for the nesting effect is between 27 and 35, and the RMSE value estimated by the uniform prior for the nesting effect is between 44 and 89. The RMSE value of the nesting effect estimated by the uniform prior has a significant increase when the ICC is large, indicating that the ICC has a greater impact on the RMSE value of the nesting effect estimated by the uniform prior. Generally, with the increase of ICC, the gamma prior setting method performs better than the uniform prior in the estimation accuracy of the nesting effect.


## 3.5. Suggestions for the Use of Prior Setting for the SSIND in a Multilevel Model

This paper uses simulation research to explore the performance of gamma priors and uniform priors in estimating treatment effects and nesting effects in a multilevel model and comprehensively compares the performance of these two methods in the model on the four evaluation indicators of the convergence rate, coverage rate,bias, and root-mean-square error. The performance and the detailed recommendations for the use of a prior setting are shown in Table 5.Table 5
Summary table of applicable conditions for a prior setting for the SSIND.
Condition combinationICC = 0.05ICC = 0.10ICC = 0.15c = 8c = 12c = 16c = 8c = 12c = 16c = 8c = 12c = 16m = 5GUUGGUGGGm = 10GUUGGUGGUm = 15GUUUGUGGGm = 20UUUGUUGGGNote. “G” means that gamma performs better, and “U” means that uniform performs better.As shown in Table5, this article recommends using the gamma prior when the number of treatment groups is small (8), and the uniform prior can be used when the number of treatment groups is large (16). When the treatment condition ICC is large (0.15), the gamma prior is used, and when the treatment condition ICC is small (0.05), the uniform prior can be used.


## 4. Conclusions and Prospects

### 4.1. Conclusion

This study adopts the Bayesian method that performs well under small sample conditions, compares the pros and cons of setting different prior distributions for the second-level nesting effect, explores the three factors that have been paid more attention to in previous studies in detail: the number of the treatment group, the number of subjects in each group, and the ICC under the treatment conditions, and explores the influence of the above factors on different parameter estimation methods, treatment effects, and nesting effect for the SSIND. The results show that for different prior setting methods, different operating conditions have a great impact; the specific conclusions are as follows.First, when the treatment condition ICC is small (0.05), the bias and RMSE values of the parameter estimation by the gamma prior setting method are larger and the performance is unstable, while the bias and RMSE values of the parameter estimation by the uniform prior setting method are smaller and the performance is relatively stable, so the uniform prior setting method is recommended; when the treatment condition ICC is large (0.15), the bias and RMSE values of the parameter estimation by the uniform prior setting method are larger and the performance is unstable, while the bias and RMSE values of the parameter estimation by the gamma prior setting method are smaller and the performance is relatively stable, so the gamma prior setting method is recommended; when the treatment condition ICC is between 0.05 and 0.15, both prior setting methods have similar effects.Second, when the number of treatment groups is small (8), the gamma prior setting method is recommended; when the number of treatment groups is large (16), the uniform prior setting method is recommended; when the number of treatment groups is between 8 and 16, both prior setting methods have similar effects.Third, when we choose which prior setting method to use for the SSIND, we must consider the interaction between the ICC and the number of treatment groups.


### 4.2. Shortcomings and Prospects

Aiming at the SSIND, this study initially explored the accuracy of parameter estimation under different conditions when using a multilevel model consistent with its data structure to analyze it. The conclusions drawn verify the influence of predecessors on the number of treatment groups, the number of subjects in each group, and the treatment conditions of the ICC on the prior setting method, but there are still some shortcomings in this study, which need to be improved.First, the SSIND discussed in this study is two-level, but in fact, there are still similar three-level data in the field of educational psychology. Future research can further explore the multilevel model to analyze the three-level small sample imbalanced nested data and explore the influence of the manipulated variables in this study on the estimation parameter accuracy of treatment effects and nesting effects.Secondly, in this study, the number of subjects in each group under the treatment conditions is set to be equal, but in real life, there is a possibility that the number of subjects in each group will be unequal. Future research should consider setting the number of subjects in each group to be unequal and exploring the impact of different prior setting methods on the accuracy of parameter estimation results.Finally, in view of the limited energy, other prior setting methods, such as inverse gamma priors, have not been compared in this study. I hope that researchers will conduct in-depth research on them in the multilevel model to enrich the prior setting methods of the multilevel model.


## 4.1. Conclusion

This study adopts the Bayesian method that performs well under small sample conditions, compares the pros and cons of setting different prior distributions for the second-level nesting effect, explores the three factors that have been paid more attention to in previous studies in detail: the number of the treatment group, the number of subjects in each group, and the ICC under the treatment conditions, and explores the influence of the above factors on different parameter estimation methods, treatment effects, and nesting effect for the SSIND. The results show that for different prior setting methods, different operating conditions have a great impact; the specific conclusions are as follows.First, when the treatment condition ICC is small (0.05), the bias and RMSE values of the parameter estimation by the gamma prior setting method are larger and the performance is unstable, while the bias and RMSE values of the parameter estimation by the uniform prior setting method are smaller and the performance is relatively stable, so the uniform prior setting method is recommended; when the treatment condition ICC is large (0.15), the bias and RMSE values of the parameter estimation by the uniform prior setting method are larger and the performance is unstable, while the bias and RMSE values of the parameter estimation by the gamma prior setting method are smaller and the performance is relatively stable, so the gamma prior setting method is recommended; when the treatment condition ICC is between 0.05 and 0.15, both prior setting methods have similar effects.Second, when the number of treatment groups is small (8), the gamma prior setting method is recommended; when the number of treatment groups is large (16), the uniform prior setting method is recommended; when the number of treatment groups is between 8 and 16, both prior setting methods have similar effects.Third, when we choose which prior setting method to use for the SSIND, we must consider the interaction between the ICC and the number of treatment groups.


## 4.2. Shortcomings and Prospects

Aiming at the SSIND, this study initially explored the accuracy of parameter estimation under different conditions when using a multilevel model consistent with its data structure to analyze it. The conclusions drawn verify the influence of predecessors on the number of treatment groups, the number of subjects in each group, and the treatment conditions of the ICC on the prior setting method, but there are still some shortcomings in this study, which need to be improved.First, the SSIND discussed in this study is two-level, but in fact, there are still similar three-level data in the field of educational psychology. Future research can further explore the multilevel model to analyze the three-level small sample imbalanced nested data and explore the influence of the manipulated variables in this study on the estimation parameter accuracy of treatment effects and nesting effects.Secondly, in this study, the number of subjects in each group under the treatment conditions is set to be equal, but in real life, there is a possibility that the number of subjects in each group will be unequal. Future research should consider setting the number of subjects in each group to be unequal and exploring the impact of different prior setting methods on the accuracy of parameter estimation results.Finally, in view of the limited energy, other prior setting methods, such as inverse gamma priors, have not been compared in this study. I hope that researchers will conduct in-depth research on them in the multilevel model to enrich the prior setting methods of the multilevel model.


## 5. Research Significance and Innovation

### 5.1. Research Significance

From the perspective of theoretical research, this article is based on the Bayesian method that performs better under small sample conditions and solves the common maximum likelihood methods that are prone to model non-convergence when analyzing multilevel models with small-sample imbalances. This article solves the problem of estimating the parameters of the variance components outside the parameter space, and compares and analyzes the performance of setting different prior distributions for the second level of nesting effects. This article enriches the estimation methods of treatment effects and nesting effects in the multilevel model under the theoretical framework.From the perspective of practical application, in randomized controlled experiments in clinical psychology, the SSIND is very common. For example, some alcoholic subjects were randomly assigned to the treatment group or the control group. After that, the subjects who were assigned to the treatment group were randomly assigned to several therapists to form several groups, and the participants in each group would interact with each other. In dependence, the subjects in the control group are independent of each other to explore the effect of the therapist in the process of alcohol withdrawal, that is, the treatment effect. Therefore, the research on the treatment effect estimation method in the multilevel model with a small sample imbalance has certain practical application significance. This study creates different situational conditions through simulation experiments, based on the Bayesian method that performs better under small sample conditions, and compares the performance of setting different prior distributions for the second-level nesting effect, which is proposed as a parameter prior. The setting provides reference suggestions to provide a better application plan for most researchers.


### 5.2. Research and Innovation

The innovation of this article is as follows:First, for the SSIND, this study uses a multilevel model consistent with its data structure to analyze. At present, domestic and foreign scholars mostly ignore the imbalanced structure in the research on the small sample of imbalanced nested data and directly use the linear regression model or the traditional multilevel model to analyze. However, the use of a multilevel model consistent with this data type is critical to the accuracy of the parameter estimation results.Second, in the selection of parameter estimation methods, this study introduces the Bayesian method into the study of multilevel models, which enriches the application scenarios of this method. In previous studies, when analyzing multilevel models with small sample imbalances, most of them used maximum likelihood or restrictive maximum likelihood estimation methods, but these methods did not perform well in the case of small samples. This study systematically evaluated the performance of different prior setting methods under the Bayesian framework in estimating the effects of a small sample imbalanced multilevel model to enrich the application of this method.Third, when comparing the pros and cons of different prior setting methods, this research conducted analysis and comparison with more conditions. Previous studies mostly focused on analysis under a small number of conditions, but this study more systematically explored the performance of several different prior distribution methods in 36 condition combinations composed of the number of treatment groups, the number of subjects in each group, and the treatment conditions.Fourth, when measuring the performance of different prior setting methods, this study broadens the selection range of evaluation indicators. Most previous studies only considered convergence rate, deviation, or root-mean-square error as evaluation indicators, but this study uses four indicators of convergence rate, confidence interval coverage, treatment effects/nesting effects estimation deviation, and root-mean-square error. In this aspect, the performance of the gamma prior and the uniform prior distribution methods is comprehensively compared, and the applicability and effectiveness of the two prior distribution methods in the multilevel model with small sample imbalance are systematically evaluated.


## 5.1. Research Significance

From the perspective of theoretical research, this article is based on the Bayesian method that performs better under small sample conditions and solves the common maximum likelihood methods that are prone to model non-convergence when analyzing multilevel models with small-sample imbalances. This article solves the problem of estimating the parameters of the variance components outside the parameter space, and compares and analyzes the performance of setting different prior distributions for the second level of nesting effects. This article enriches the estimation methods of treatment effects and nesting effects in the multilevel model under the theoretical framework.From the perspective of practical application, in randomized controlled experiments in clinical psychology, the SSIND is very common. For example, some alcoholic subjects were randomly assigned to the treatment group or the control group. After that, the subjects who were assigned to the treatment group were randomly assigned to several therapists to form several groups, and the participants in each group would interact with each other. In dependence, the subjects in the control group are independent of each other to explore the effect of the therapist in the process of alcohol withdrawal, that is, the treatment effect. Therefore, the research on the treatment effect estimation method in the multilevel model with a small sample imbalance has certain practical application significance. This study creates different situational conditions through simulation experiments, based on the Bayesian method that performs better under small sample conditions, and compares the performance of setting different prior distributions for the second-level nesting effect, which is proposed as a parameter prior. The setting provides reference suggestions to provide a better application plan for most researchers.


## 5.2. Research and Innovation

The innovation of this article is as follows:First, for the SSIND, this study uses a multilevel model consistent with its data structure to analyze. At present, domestic and foreign scholars mostly ignore the imbalanced structure in the research on the small sample of imbalanced nested data and directly use the linear regression model or the traditional multilevel model to analyze. However, the use of a multilevel model consistent with this data type is critical to the accuracy of the parameter estimation results.Second, in the selection of parameter estimation methods, this study introduces the Bayesian method into the study of multilevel models, which enriches the application scenarios of this method. In previous studies, when analyzing multilevel models with small sample imbalances, most of them used maximum likelihood or restrictive maximum likelihood estimation methods, but these methods did not perform well in the case of small samples. This study systematically evaluated the performance of different prior setting methods under the Bayesian framework in estimating the effects of a small sample imbalanced multilevel model to enrich the application of this method.Third, when comparing the pros and cons of different prior setting methods, this research conducted analysis and comparison with more conditions. Previous studies mostly focused on analysis under a small number of conditions, but this study more systematically explored the performance of several different prior distribution methods in 36 condition combinations composed of the number of treatment groups, the number of subjects in each group, and the treatment conditions.Fourth, when measuring the performance of different prior setting methods, this study broadens the selection range of evaluation indicators. Most previous studies only considered convergence rate, deviation, or root-mean-square error as evaluation indicators, but this study uses four indicators of convergence rate, confidence interval coverage, treatment effects/nesting effects estimation deviation, and root-mean-square error. In this aspect, the performance of the gamma prior and the uniform prior distribution methods is comprehensively compared, and the applicability and effectiveness of the two prior distribution methods in the multilevel model with small sample imbalance are systematically evaluated.



---

*Source: 2726602-2022-11-14.xml*