Try to identify link function
identify_link_function(obj)
obj
stanfit object
Either "logit" or "probit"; if neither can be identified the function will return 'NA_character_'.