treetime/treeregression.py
def regression(self, slope=None):
        """regress tip values against branch values

        Parameters
        ----------
        slope : None, optional
            if given, the slope isn't optimized

        Returns
        -------
        dict
            regression parameters
        """
        self._calculate_averages()

        clock_model = base_regression(self.tree.root.Q, slope)
        clock_model['r_val'] = self.explained_variance()

        return clock_model
def regression(self, slope=None):
        self._calculate_averages()

        clock_model = base_regression(self.tree.root.Q, slope)
        clock_model['r_val'] = self.explained_variance()

        return clock_model
def regression ( self , slope = None ) : self . _calculate_averages ( ) clock_model = base_regression ( self . tree . root . Q , slope ) clock_model [ 'r_val' ] = self . explained_variance ( ) return clock_model
regress tip values against branch values

        Parameters
        ----------
        slope : None, optional
            if given, the slope isn't optimized

        Returns
        -------
        dict
            regression parameters
regress tip values against branch values