We present a comprehensive study of free-charge carrier and structural properties of two sets of InN films grown by molecular beam epitaxy and systematically doped with Mg from 1.0 Â 10 18 cm À3 to 3.9 Â 10 21 cm À3 . The free electron and hole concentration, mobility, and plasmon broadening parameters are determined by infrared spectroscopic ellipsometry. The lattice parameters, microstructure, and surface morphology are determined by high-resolution X-ray diffraction and atomic force microscopy. Consistent results on the free-charge carrier type are found in the two sets of InN films and it is inferred that p-type conductivity could be achieved for 1.0 Â 10 18 cm À3 Շ [Mg] Շ 9.0 Â 10 19 cm À3 . The systematic change of free-charge carrier properties with Mg concentration is discussed in relation to the evolution of extended defect density and growth mode. A comparison between the structural characteristics and free electron concentrations in the films provides insights in the role of extended and point defects for the n-type conductivity in InN. It further allows to suggest pathways for achieving compensated InN material with relatively high electron mobility and low defect densities. The critical values of Mg concentration for which polarity inversion and formation of zinc-blende InN occurred are determined. Finally, the effect of Mg doping on the lattice parameters is established and different contributions to the strain in the films are discussed. V C 2014 AIP Publishing LLC.