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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 694 views
  • 9 likes
  • 4 in conversation