Can Linear Regression analyses have negative values in the independent variable (x)? (2024)

☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.

<!#-- DETERMINE THREAD OR REPLY --> <!#-- GET THE MESSAGE ID AND DATA, EITHER WAY -->

<!#-- ASSIGN MESSAGE AND AUTHOR QUERIES APPROPRIATELY -->

Can Linear Regression analyses have negative values in the independent variable (x)? (1)

Obsidian | Level 7

<!#-- DETERMINE THREAD OR REPLY -->

I have a data that includes temperature in Celsius (y) and forest canopy change in % (x). I wonder if it is statistically correct to plot the forest canopy change with negative values? My idea is to see how much temperature changes as the canopy cover changes.

The code I am using is:

PROC REG DATA=Microclimate CORR;

MODEL Y=X / CLB P CLM;

RUN;

Thanks!

0Likes

1 ACCEPTED SOLUTION


Accepted Solutions

<!#-- DETERMINE THREAD OR REPLY --> <!#-- GET THE MESSAGE ID AND DATA, EITHER WAY -->

<!#-- ASSIGN MESSAGE AND AUTHOR QUERIES APPROPRIATELY -->

Can Linear Regression analyses have negative values in the independent variable (x)? (3)

Super User

<!#-- DETERMINE THREAD OR REPLY -->

Posted 08-17-2022 10:41 PM (1103 views) | In reply to Joa14

That is acceptable.

If "canopy" measures either a fixed area of shade generating plant material or percentage of ground covered by such then one would expect a reduction of temperature for a given solar radiation input based on the shade.

Hint: a model without the solar radiation input may generate some odd results because the "canopy" likely doesn't change quickly but temperature can based on the sunshine. (Actually worked a project with ground temperature sensors north, east, west and south of clumps of bunch grass and dealt with such to model ground temperature.)

Remember the underlying generic linear function is a y= mx+b; m is the slope, b an intercept. There is no restriction in general on whether X is positive, negative or 0.

IF a value you measure should not negative values, such as Relative Humidity, then interpretation of a model may require restriction if the dependent value goes negative.

1 REPLY 1

<!#-- DETERMINE THREAD OR REPLY --> <!#-- GET THE MESSAGE ID AND DATA, EITHER WAY -->

<!#-- ASSIGN MESSAGE AND AUTHOR QUERIES APPROPRIATELY -->

Can Linear Regression analyses have negative values in the independent variable (x)? (5)

Super User

<!#-- DETERMINE THREAD OR REPLY -->

Posted 08-17-2022 10:41 PM (1104 views) | In reply to Joa14

That is acceptable.

If "canopy" measures either a fixed area of shade generating plant material or percentage of ground covered by such then one would expect a reduction of temperature for a given solar radiation input based on the shade.

Hint: a model without the solar radiation input may generate some odd results because the "canopy" likely doesn't change quickly but temperature can based on the sunshine. (Actually worked a project with ground temperature sensors north, east, west and south of clumps of bunch grass and dealt with such to model ground temperature.)

Remember the underlying generic linear function is a y= mx+b; m is the slope, b an intercept. There is no restriction in general on whether X is positive, negative or 0.

IF a value you measure should not negative values, such as Relative Humidity, then interpretation of a model may require restriction if the dependent value goes negative.

Can Linear Regression analyses have negative values in the independent variable (x)? (2024)
Top Articles
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 6259

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.