Simple implementation of sliced inverse regression with replication of Li 1991 simulations