The simplest way to install this command is to type the following at the Stata command prompt: “ssc install cqiv”