See this wikipedia article that discusses it in the context of logic.
https://en.wikipedia.org/wiki/Argument_from_analogy