Programming the statistical procedures from SAS

Comparing slope of two regression lines

Reply
New Contributor
Posts: 2

Comparing slope of two regression lines

I want to determine if the the response to one treatment is different from another.  I have multiple animals, some that received drug A and others drug B.  They are distrubuted based on starting weight, so the x-axis is a continuous variable.  The y-axis is response time in seconds.  Essentially I would like to determine whether the slopes of the best fit lines are similiar or different.    

Frequent Contributor
Posts: 75

Re: Comparing slope and intercept of two lines

build a linear model y= intercept+x+trt +x*trt and then test the coefficient for x*trt to see if the slopes are zero. to test if both treatments have the same intercept then test the trt coefficient to see if it zero.

New Contributor
Posts: 2

Comparing slope of two regression lines

Is there not a way to perform this analysis without writing script?

Valued Guide
Posts: 2,108

Comparing slope of two regression lines

you can do it in the point-n-click interface of Enterprise Guide.

Ask a Question
Discussion stats
  • 3 replies
  • 860 views
  • 0 likes
  • 3 in conversation