A covalent fraction model for lanthanide compounds