How to test if regression coefficient = 1 [duplicate]

I’m attempting to run a regression and test whether the slope is equal to 1. Most statistical packages only test of it's equal to zero. Is there a way to bypass this ? I’ve SPSS and minitab and can run the typical regression.

Will the regression coefficients and SE be the same irrespective of whether I’m testing (slope = 0 or 1)? Meaning are the t stats and p values the only things that depend on the hypothesis.

marked as duplicate by Glen_b regression StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Mar 8 at 0:56

• The hits at stats.stackexchange.com/… provide ideas. A general procedure is offered at stats.stackexchange.com/questions/180478. Does that answer your questions? But the practical matter is that if in a model $E[Y]=\beta_0+\beta_1 x$ you wish to test the hypothesis $\beta_1=c$ for a predetermined constant $c$ (like $c=1$), then simply fit the model $E[Y-cx]=\beta_0+(\beta_1-c)x$ by regressing $Y-cx$ against $x$ and read the p-value directly off the standard output. – whuber Mar 7 at 16:09