BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Ameurgen
Obsidian | Level 7

Hi evry one,

i need little help , i ma conducting GLM using ineraction between month and breed (see plot example below), so but GLM keep give me the months  in disorder , so please in any one have a  solution, that will be very helpful

regards

 

Ameurgen_1-1695687321292.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

I'm going to go out on a limb and guess as there is absolutely no actual description of the data involved that your variable Breeding_month is character, meaning it contains letters. So the natural order of character months starts with April, August, ....

The easiest approach would be to create a new variable that is the month number of the calendar year and use that.

If you want to see text like April appear then create a custom format that will display the numeric value 1='January' 2='February' etc.

 

OR go back early in your data and make sure that your month variable is a date value and use a format like MONNAME to display the dates as words.

 


@Ameurgen wrote:

Hi evry one,

i need little help , i ma conducting GLM using ineraction between month and breed (see plot example below), so but GLM keep give me the months  in disorder , so please in any one have a  solution, that will be very helpful

regards

 

Ameurgen_1-1695687321292.png

 

 


 

View solution in original post

1 REPLY 1
ballardw
Super User

I'm going to go out on a limb and guess as there is absolutely no actual description of the data involved that your variable Breeding_month is character, meaning it contains letters. So the natural order of character months starts with April, August, ....

The easiest approach would be to create a new variable that is the month number of the calendar year and use that.

If you want to see text like April appear then create a custom format that will display the numeric value 1='January' 2='February' etc.

 

OR go back early in your data and make sure that your month variable is a date value and use a format like MONNAME to display the dates as words.

 


@Ameurgen wrote:

Hi evry one,

i need little help , i ma conducting GLM using ineraction between month and breed (see plot example below), so but GLM keep give me the months  in disorder , so please in any one have a  solution, that will be very helpful

regards

 

Ameurgen_1-1695687321292.png

 

 


 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 422 views
  • 0 likes
  • 2 in conversation