## Help!

Solved
Occasional Contributor
Posts: 5

# Help!

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!

Accepted Solutions
Solution
‎06-24-2015 08:44 AM
Valued Guide
Posts: 863

## Re: Help!

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.

All Replies
Solution
‎06-24-2015 08:44 AM
Valued Guide
Posts: 863

## Re: Help!

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.

Super User
Posts: 9,599

## Re: Help!

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.

Occasional Contributor
Posts: 5

## Re: Help!

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?

Super User
Posts: 9,599

## Re: Help!

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

Super User
Posts: 10,778

## Re: Help!

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

Occasional Contributor
Posts: 5

## Re: Help!

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

🔒 This topic is solved and locked.