Stellar scintillations during the occultation by the Earth's atmosphere are analyzed. Factors determining the accuracy of the phase screen method as applied to description of a wave propagated through a distorting layer in the case of spatial dependence of the regular component of refractive index are determined. The corresponding errors are estimated and a possible way of compensating for them is proposed.