Safety-related cabinets and their electrical parts, such as relays and switches in nuclear power plants, should maintain continuous functioning, as well as structural safety according to the nuclear regulatory guidelines. Generally, an electrical part is qualified if its functioning is maintained without abnormality during excitement by motion compatible with the test response spectrum, which is larger than its in-cabinet response spectrum (ICRS). ICRS can be determined by shake-table test or dynamic analysis. Since existing cabinets in use can hardly be stopped and moved, dynamic analysis is preferred over shake-table test in determining ICRS. The simple method, suggested by the Electric Power Research Institute (EPRI) to determine ICRS, yields conservative or non-conservative results from time to time. In order to determine that the ICRS is better than EPRI method in a simple way, Ritz method considering global and local plate behaviors was suggested by Gupta et al. In this paper, the Ritz method is modified in order to consider the rocking and frame behaviors simultaneously, and it is applied to a simple numerical example for verification. ICRS is determined by Ritz method and compared with the results by finite element method (FEM). Based on this numerical example, recommendations for using Ritz method are suggested.