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

  • SEARCH
  • Home
  • 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 7500747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:17:19+00:00 2026-05-29T20:17:19+00:00

I have a data set (below) with a power relationship. (Y =aX^b) The power

  • 0

I have a data set (below) with a power relationship. (Y =aX^b)

The power fit in Excel and xmgrace gave me an almost identical values for the fit. (R^2 of 0.993)
Y = 215.47 X^0.812

However when I try R’s nls() function I get a different value. Plus it does not calculate a R^2 because it is not statistically sound.

However if i take logarithms, I can do a lm() and get a R^2 of 0.993. How do I reproduce the values excel and xmgrace produce with power fits using R..Is R nls() not correct??

Drift Time  Mass_Independent CS
2.32    407.3417277
2.32    419.1267553
2.81    503.9859708
2.92    501.0465281
3.78    640.9024985
4.00    688.7906761
4.48    776.3958584
5.67    918.9991003
6.05    949.4448047
6.86    993.9763311
6.86    1064.539603
6.97    1041.422648
7.94    1112.407393
8.42    1183.070416
9.23    1302.622263
9.29    1291.525748
  • 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-29T20:17:20+00:00Added an answer on May 29, 2026 at 8:17 pm

    I think you would be foolish to trust an Excel estimate over an R estimate. The failings of Excel in the domain of regression are longstanding and well documented:

     nls(Mass_Ind_CS ~a*Drift_Time^b , dat, start=list(a=100, b=1))
    #---------------------
    Nonlinear regression model
      model:  Mass_Ind_CS ~ a * Drift_Time^b 
       data:  dat 
           a        b 
    227.0176   0.7828 
     residual sum-of-squares: 10224
    
    Number of iterations to convergence: 5 
    Achieved convergence tolerance: 3.617e-06 
    #---------------------
     plot(dat, xlim=range(dat$Drift_Time), ylim=range(dat$Mass_Ind_CS) )
     par(new=T)
     curve(215.47*x^0.812, from=min(dat$Drift_Time), 
                            to=max(dat$Drift_Time),
                             ylim=range(dat$Mass_Ind_CS) )
     par(new=T)
     curve(227.0176*x^0.7828, from=min(dat$Drift_Time), 
                              to=max(dat$Drift_Time), 
                              ylim=range(dat$Mass_Ind_CS),col="red")
    

    The R estimate is plotted in red. It shows that you are wrong to focus on the parameter estimate without looking at the predictions over the range of the x=values. There is no real R-sq to estimate for solitary non-linear models, although you can do model comparisons with anova(). You are welcome to search out the reasons for the author of nls (Douglas Bates) not including them, because it is practically a FAQ on the r-help mailing list.

    enter image description here

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

Sidebar

Related Questions

I have a data set that looks like the below (the input). IR# CR#
I have data set as below: Quote: HBOND SUMMARY output to file HB_lowLyo_D_lipid_A_water_001_064.tbl, data
I have a data set whose elements are displayed as rows in a DataGrid.
I have a data set that is organized in the following manner: Timestamp|A0001|A0002|A0003|A0004|B0001|B0002|B0003|B0004 ...
I have a data set that looks like this: 000 100 200 300 010
I have a data set with over 50,000 geocoded points (lat-long). Each point has
I have a data set which consists of an ID and a matrix (n
I have a data set that is around 700 rows with eight columns of
I have the following data set that I am trying to plot with ggplot2,
Interpolating Large Datasets I have a large data set of about 0.5million records representing

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.