Using the Lennard-Jones interaction potential between the impurity atom and carbon atom, we have studied the dependence of in-tube impurity doping on the radius of a single-wall carbon nanotube (SWNT), as well as its helicity.The obtained results show that the radius of the most stably doped SWNT is different for different kinds of impurity atoms. This is useful for producing the required doped SWNT. In addition, it is found that the helicity of tube has a strong effect on the potential energy of the atoms doped in the SWNT.