def d3logpdf_dlink3_dr(self, link_f, y, Y_metadata=None):
c = np.zeros_like(y)<EOL>if Y_metadata is not None and '<STR_LIT>' in Y_metadata.keys():<EOL><INDENT>c = Y_metadata['<STR_LIT>']<EOL><DEDENT>uncensored = (<NUM_LIT:1>-c)* ((y**self.r)*np.exp(-link_f)*np.log1p(y))<EOL>censored = c*np.exp(-link_f)*(y**self.r)*np.log(y)<EOL>d3logpdf_dlink3_dr = uncensored + censored<EOL>return d3logpdf_dlink3_dr<EOL>
:param link_f:
:param y:
:param Y_metadata:
:return: