Greetings good SAS people,
On July 16 ff. in "Use SAS to fit this curve?", I inquired as to what tool
I could use to find a best fit for some data.
In subsequent manual tinkering, I have found that this data (appended) is
very nicely fit by a two-term exponential equation such as:
Sites = 773e^(-0.27*Chems) + 156e^(-0.067*Chems)
(It is plotting the number of major U.S. hazardous waste sites at which
e.g. for Chems=1, 1 or more chemicals were in a pathway to which people
were exposed. Overall, the curve shows how often (the number of waste
sites) there is a high number of chemicals in the pathway, when folks are
exposed.)
The data itself makes a very "nice" curve to the naked eye, but a one-term
exponential simply wasn't cutting it. Two exp. terms were found to do a
lovely fit. However, this was all done "by hand" (in Excel, watching how
well my model fit vs. the data on a graph) and I have no tool to give me
feedback relative to R^2 values etc. (I guess I should bone up and can
probably do regression in Excel?... anybody have a quick webpage reference
handy?) Nor do I know whether/if SAS (or some other s/w) has the ability to
make and/or fit a two term exponential. I played around with Insight as a
result of the previous post, but it has so many arcanes variables (a.k.a.
I'm such a newbie) I can't tell whether it can try to fit with a two term
exponential. (I'm not interested in polynomial fits, and that's the only
thing I was able to figure out how to get Insight to work.)
Thanks in advance if you can help!!
Mike, Atlanta
***
input Chems Sites;
cards;
1 743
2 588
3 475
4 390
5 321
6 266
7 214
8 185
9 161
10 136
11 111
12 102
13 87
14 74
15 69
16 61
17 56
18 52
19 47
20 46
21 44
22 39
23 36
24 33
25 29
26 26
28 24
29 22
30 20
31 19
32 18
37 16
38 15
39 13
40 11
41 10
42 9
48 7
49 6
51 5
56 4
58 3
62 2
;
|
|
0
|
|
|
|
Reply
|
rmf4 (6)
|
8/1/2003 3:04:00 PM |
|
PROC CAPABILITY, part of the SAS/QC package, has some very nice tools for
curve-fitting. Part of PROC CAPABILITY's histogram functionality was added
to PROC UNIVARIATE in Base SAS, but not the curve-fitting features. You do
have to tell it what distribution to attempt to fit.
Jonathan Siegel
On Fri, 1 Aug 2003 11:04:00 -0400, Mike Fay <rmf4@CDC.GOV> wrote:
>Greetings good SAS people,
>
>On July 16 ff. in "Use SAS to fit this curve?", I inquired as to what tool
>I could use to find a best fit for some data.
>
>In subsequent manual tinkering, I have found that this data (appended) is
>very nicely fit by a two-term exponential equation such as:
>
> Sites = 773e^(-0.27*Chems) + 156e^(-0.067*Chems)
>
>(It is plotting the number of major U.S. hazardous waste sites at which
>e.g. for Chems=1, 1 or more chemicals were in a pathway to which people
>were exposed. Overall, the curve shows how often (the number of waste
>sites) there is a high number of chemicals in the pathway, when folks are
>exposed.)
>
>The data itself makes a very "nice" curve to the naked eye, but a one-term
>exponential simply wasn't cutting it. Two exp. terms were found to do a
>lovely fit. However, this was all done "by hand" (in Excel, watching how
>well my model fit vs. the data on a graph) and I have no tool to give me
>feedback relative to R^2 values etc. (I guess I should bone up and can
>probably do regression in Excel?... anybody have a quick webpage reference
>handy?) Nor do I know whether/if SAS (or some other s/w) has the ability to
>make and/or fit a two term exponential. I played around with Insight as a
>result of the previous post, but it has so many arcanes variables (a.k.a.
>I'm such a newbie) I can't tell whether it can try to fit with a two term
>exponential. (I'm not interested in polynomial fits, and that's the only
>thing I was able to figure out how to get Insight to work.)
>
>Thanks in advance if you can help!!
>
> Mike, Atlanta
>
>***
>
>input Chems Sites;
>
>cards;
>
> 1 743
> 2 588
> 3 475
> 4 390
> 5 321
> 6 266
> 7 214
> 8 185
> 9 161
> 10 136
> 11 111
> 12 102
> 13 87
> 14 74
> 15 69
> 16 61
> 17 56
> 18 52
> 19 47
> 20 46
> 21 44
> 22 39
> 23 36
> 24 33
> 25 29
> 26 26
> 28 24
> 29 22
> 30 20
> 31 19
> 32 18
> 37 16
> 38 15
> 39 13
> 40 11
> 41 10
> 42 9
> 48 7
> 49 6
> 51 5
> 56 4
> 58 3
> 62 2
>
>;
|
|
0
|
|
|
|
Reply
|
jmsiegel (9)
|
8/4/2003 11:22:11 PM
|
|
|
1 Replies
47 Views
(page loaded in 0.063 seconds)
Similiar Articles: Goodness of fit - comp.soft-sys.matlab... my data (the best fit for my data). Which one is the best one, Exponential ... I enter in two vectors and fit a linear ... 2D gaussian fitting using Surface Fitting Tool - comp ... Simple linear regression in Curve Fitting Toolbox - comp.soft-sys ...I enter in two vectors and fit a linear polynomial to the ... Plotting a linear trend line using "tools", "basic fitting ... with curve fitting toolbox ... the best-fitting ... least square fit for experimental data - comp.soft-sys.matlab ...... on the topic and was exposed to terms ... go about starting to get the best curve fitting ... you can use polyfit or other tools (my SLM for > example) or the curve fitting ... Linear Regression without a constant term - comp.soft-sys.matlab ...... in MATLAB with no constant term? I have data for 9 regressors and I have to fit a ... are entirely different in the two ... linear trend line using "tools", "basic fitting ... How to combine two scanned pages into one page? - comp.text.pdf ...... so I could not fit it ... so I could not fit it into one A4 page, it takes about 1.2 A4 page in terms of ... Try PDF-Tools : www.docu-track.co.uk/PDFX3.zip -- Best Regards ... Going farther with Mass Spring Damper. - comp.dspPMPD is indeed probably your best bet especially if ... with that, but if you limit yourself to the tools ... In all cases the solution is two exponential expressions. Nonlinear curve fit fails to converge - comp.soft-sys.matlab ...Use of a tool like a partitioned least squares can help ... too narrow for this broad audience, I've sent you two e ... At best, they may have a metaphorical model, i.e., a ... Equation from the ploat - comp.soft-sys.matlabThe best you would be able to do is to try a set of ... as mentioned, many (infinite) functions that will fit ... System Identification Toolbox to be a useful tool http ... how to transpose large matrix? - comp.unix.shellIt would be interesting if there'd be a tool to ... Seriously, your best bet is going to be to take a 'strip' of rows that will fit into memory, transpose, and output ... spline fit & 2nd derivatives - comp.soft-sys.matlabHi I have a set of data and what to apply a spline fit ... that I have (approximately 1000 data sets of x,y terms ... Alternatively, if you use my SLM tools, I provide code ... Fitting Data (Curve Fitting Toolbox) - Weizmann Institute of ScienceThe toolbox provides a one-term and a two-term exponential model. ... fit and want to maximize the flexibility of the fit, piecewise polynomials might provide the best ... Fitting Data :: Interactive Curve Fitting (Curve Fitting Toolbox)... provides a one-term and a two-term exponential ... In most cases, this is the best choice for robust fitting. ... Import these two variables into Curve Fitting Tool and name the ... 7/28/2012 3:09:31 PM
|