Analysis for seismic retrofitting of buildings