Yahya Alramadan Posted June 26, 2022 Share Posted June 26, 2022 Can anyone please help me to output the rsquare of the data function below I'm using the data function (Model II Regression Straight Line Fit) referenced in the link below to fit a straight line on my data. I'm able to get the slope and intercept as explained in the link but I'd like to get the rsquare too. Appreciate your help as I have limited experience with R Scripts Here is the link to the data function: How to do a Model II Regression Straight Line Fit, using a data function:https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-48165 Link to comment Share on other sites More sharing options...
Yahya Alramadan Posted June 26, 2022 Author Share Posted June 26, 2022 I figured this out. In case anyone is looking for the answer: library( lmodel2 ) #Extract the SMA slope and intercept #Available methods: # OLS = 1 #Matches "Lines & Curves > Straight Line Fit" # MA = 2 # SMA = 3 method Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now