O programowaniu w środowisku R na przykładzie algorytmu obliczeniowego dla formuły do wykrywania kryzysów demograficznych * Stary porządek demograficzny odznaczał się m.in. występowaniem (cyklicznym) kryzysów demograficznych, które były wywoływane -by użyć przenośni -przez czterech jeźdźców Apokalipsy, przede wszystkim głód i zarazy 1 . Samo pojęcie kryzysu demograficznego, w uproszczeniu oznaczające załamanie się dotychczasowych relacji między zmiennymi demograficznymi, ma jednak dość nieostry charakter, można nawet rzec: uznaniowy. Nie ulega jednak wątpliwo-ści, że przed nastaniem transformacji demograficznej to przede wszystkim ruch zgonów był czułym miernikiem normalności i anormalności zmian, przy czym należy pamiętać, że jego rejestracja w dobie wysokiej umieralności ze względu na zaburzenia w ładzie społeczno-administracyjnym mogła być daleka od kompletności. Mimo tego w środowisku naukowym metoda "ostrego" typowania kryzysów demograficznych na podstawie rozwoju liczby zgonów, oparta na standaryzacyjnej formule zaproponowanej przez Jacques'a Dupâquiera, zdobyła sobie zwolenników 2 . Jej wada -jednowymiarowość -zważywszy na niedobory róż-nych danych demograficznych dla epoki przedstatystycznej, stała się zarazem jej zaletą. Mało tego -moim zdaniem -formuła ta, z uwagi na swą standaryzacyjną postać, nie musi bazować wyłącznie na liczbach zgonów, by wykrywać kryzysy * Wyniki obliczeń zamieszczone są też na platformie wydawniczej (do pobrania jako pliki csv lub txt).1 Zob. Massimo Livi Bacci, Europa und seine Menschen. Eine Bevölkerungsgeschichte, aus dem Italienischen von Rita Seuß, München 1999, s. 56-120.