Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7607129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:35:02+00:00 2026-05-31T00:35:02+00:00

i have a linear regression problem which i solved using: m=lm(value ~ mean, data=d)

  • 0

i have a linear regression problem which i solved using:

m=lm(value ~ mean, data=d)

and from this value i can get the R2 and the regression equation.

but i want to get the standard error(fitting error). i was able to see the value but i don’t know how to get it in order to store it inside a data frame.

i get the value using summary(m) and the result is something like this:

Call:
lm(formula = value ~ mean, data = d)

Residuals:
    Min      1Q  Median      3Q     Max 
-25.000 -15.909  -2.124  14.596  44.697 

Coefficients:
              Estimate Std. Error t value Pr(>|t|)    
(Intercept)  2.500e+01  1.064e+00   23.49   <2e-16 ***
mean        -1.759e-06  1.536e+00    0.00        1    
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 

Residual standard error: 16.85 on 1298 degrees of freedom
Multiple R-squared: 1.01e-15,   Adjusted R-squared: -0.0007704 
F-statistic: 1.311e-12 on 1 and 1298 DF,  p-value: 1 

so the question is: how can i get access to these values??

thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:35:04+00:00Added an answer on May 31, 2026 at 12:35 am

    The function summary just returns an R list.

    ##Generate some dummy data
    x = runif(10);y = runif(10)
    m = summary(lm(y ~ x))
    

    We can use the usual list syntax to extract what we want. For example,

    m[[4]]
    

    Returns a data frame of model fits

    R> m[[4]]
                Estimate Std. Error t value Pr(>|t|)
    (Intercept)  0.44265     0.2443  1.8123   0.1075
    x            0.07066     0.4460  0.1584   0.8781
    

    and m[[6]] returns the Residual standard error

    R> m[[6]]
    [1] 0.2928
    

    There are a few convenience functions around, such as coefficients(m)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have data and I need to do a linear regression on the data
I have the following code for doing a linear regression: data<-read.csv(File.csv,header=T) trans<-log(data) attach(trans) outdata<-summary(lm(Y~A
I have a linear layout with this form <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical
I have Fortran-based 3D column-major order array flattened into linear memory. What formula/algorithm can
I ned to implement the multi-linear regression in C#(3.0) by using the LinESt function
I want to do a linear regression in R using the lm() function. My
I'm trying to generate a linear regression on a scatter plot I have generated,
I have a linear linked list that consists of nodes: class Node{ Object data;
I have a linear layout (horizontal) inside which there is 3 linear layouts, each
I am using R to analyze genome-wide association study data. I have about 500,000

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.