Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I control the formatting (i.e. number of places after the decimal) of output displayed by PRINT or the regression instructions?

0
Posted

Can I control the formatting (i.e. number of places after the decimal) of output displayed by PRINT or the regression instructions?

0

H4. Update: With Version 5, the PICTURE option was added to the PRINT command. It allows you to control the formatting of output. See the description of PRINT in the RATS 5 Reference Manual for details. If you have Version 4 or older, there is no general setting that affects the number of decimals displayed by PRINT. If you want to print out (display) a set of series with a specific format, use the COPY instruction with the UNIT=OUTPUT (if you want the output directed to the screen) and FORTRAN format options. For regression output, you can use the DISPLAY instruction with position and picture codes to display the contents of reserved variables defined by regression instructions (e.g., %SEESQ, %RSQUARED), or any other values you calculate.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123