Dynamic Analysis on the Relation between RD and Patent Applications in Japan