B-factors are experimental values, and I am afraid they cannot be calculated from unrelated data. If you have the crystal structure of the material you would like to do Reitveld analysis (RA) on, the B-factors should be available and you don't have to calculate them. Remember GIGO ("garbage in garbage out"); if you input bad B-factors into the RA, the output you get will also be bad.