BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Metz
Calcite | Level 5

Hi! I have a question: how can i 'translate' this RStudio command

     > fm9.1<-gls(visual~-1+visual0+time.f+treat.f:time.f, weights=varIdent(form=~1|time.f),data=armd)

     > summary(fm9.1)

in SAS code?

I can't solve this problem. Thanks for your help!

1 ACCEPTED SOLUTION

Accepted Solutions
Steelers_In_DC
Barite | Level 11

I do not know Rstudio but if you give a sample of data you have and what you are trying to do I can try to help.

View solution in original post

6 REPLIES 6
Steelers_In_DC
Barite | Level 11

I do not know Rstudio but if you give a sample of data you have and what you are trying to do I can try to help.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,

With regards to the Linear Modelling GLS procedure, you can have a look at:

http://support.sas.com/documentation/cdl/en/statugregression/61752/PDF/default/statugregression.pdf

Or post directly into the statistics section on here about Linear Models.

With regards to the summary command, there is proc summary, proc means, proc freq.  All have help pages on line.  Should be mainly putting your variables in the correct order.

Metz
Calcite | Level 5

Thanks! But my problem is that hat i want to do a linear regression with heterogeneus variance, because my 'w_i' is not equal 1 but is equal to the variance of the first level of a model's factor. How can i write this?

RW9
Diamond | Level 26 RW9
Diamond | Level 26

I would suggest posting in the Statistical Procedures section of this help with your question, I am not a statistician sorry.

Ksharp
Super User

You mean Weighted Least Square ? Post it at Stat Forum.  I guess proc glm can do that.

Metz
Calcite | Level 5

Yes, i mean that! Ok i try there. Thank you all

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 6 replies
  • 1599 views
  • 9 likes
  • 4 in conversation