Credit ratings are based on Standard & Poor's, Moody's ratings are drawn from Moody's Investors service. When selecting countries, the population criterion was used. Macroeconomc indicators are used to calculate the rating using the World Bank Indicators data, which consists of 1519 indicators. The first hypothesis assumes that the following are the most important indicators for determining the state rating: government debt in total to GDP, GDP per capita, GDP growth rate, unemployment rate and inflation. Other indicators such as x1 government debt to GDP x2 unemployment rate and x4 growth rate of GDP have not been confirmed as significant indicators influencing the ratings. However, the main benefit of this theses is also the creation of regression equations to estimate the rating of a particular state in the given year, or the rating of a particular state in a time series. The high value of the aggregate correlation coefficient was impaired by absolute multi-collinearity. In one instance, the aggregate correlation coefficient did not exceed 80% when multi-collinearity was below 20%. Rating grades cannot be explained solely by economic characteristics, but are also influenced by political or strategic factors.