Hi,
I need to use a year-quarter variable in a regression model, but it won't run due to the decimal place. Is there a way to drop the decimal without rounding the number? The variable is a float saved as 2008.1, 2008.2, 2008.3, 2008.4 etc.
Thank you!
I need to use a year-quarter variable in a regression model, but it won't run due to the decimal place. Is there a way to drop the decimal without rounding the number? The variable is a float saved as 2008.1, 2008.2, 2008.3, 2008.4 etc.
Code:
. dataex YEARQ ----------------------- copy starting from the next line -----------------------Code:* Example generated by -dataex-. For more info, type help dataex clear input float YEARQ 2019.4 2010.4 2015.3 2008.1 2016.1 2008.3 2012.3 2012.3 2008.1 2012.3 2019.2 2008.1 2010.3 2015.2 2015.3 2015.4 2018.4 2010.2 2009.2 2008.1 2008.1 2018.3 2008.3 2019.2 2010.4 2012.1 2019.4 2011.1 2008.2 2017.1 2012.1 2008.3 2018.1 2015.4 2014.2 2012.1 2019.4 2008.1 2008.1 2018.4 2016.1 2009.2 2017.1 2017.2 2016.1 2017.4 2013.4 2018.3 2015.4 2008.1 2019.4 2008.1 2009.4 2017.1 2009.4 2010.2 2010.3 2015.4 2012.4 2019.2 2012.3 2013.3 2014.1 2016.3 2015.1 2008.4 2016.1 2016.4 2008.3 2014.3 2011.1 2009.1 2014.4 2018.4 2008.3 2012.2 2011.2 2019.3 2018.1 2017.2 2014.1 2015.3 2019.4 2012.1 2018.1 2015.3 2018.3 2008.1 2019.3 2018.2 2015.3 2013.1 2018.2 2018.3 2019.4 2019.4 2019.3 2013.3 2018.1 2018.1 end
Thank you!
Comment