How do I change Beta=0 to Beta=2 for proc reg?
Use the TEST statement in PROC REG. Examples: https://documentation.sas.com/doc/en/pgmmvacdc/9.4/statug/statug_reg_syntax20.htm
Use the TEST statement in PROC REG. Examples: https://documentation.sas.com/doc/en/pgmmvacdc/9.4/statug/statug_reg_syntax20.htm
The PROC REG output contains two-sided tests. If you were to do a two-sided test at the alpha=0.05 level, then 0.025 chance of a type I error is in the upper tail and 0.025 chance of a type I error is in the lower tail.
You want a one-sided test with alpha=0.05 in one tail and alpha=0 in the other tail. So, if the pvalue from SAS is <0.10, your one-sided test is statistically significant at the alpha=0.05 level, because 0.05 chance of type I error in one tail, and 0 percent chance of type I error in the other tail.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.