BookmarkSubscribeRSS Feed
pablorodriguez1
Calcite | Level 5

I am trying to find a functino that find the best-fit function according to some data points that I have. I am doing that with proc nlin, and have succeeded at computing it with a logarithmic model function. Currently I am trying to do it with a different model function* but I haven't managed to make it work.

 

I think I may be inputting the function with the wrong expression.

 

* The model function is the Weibull distribution whose expression is f(t) = 1 - e^(-(t/a)^b);

PROC NLIN DATA=aux_&s
	MAXITER=500
	CONVERGE=1E-05
	SINGULAR=1E-08
	MAXSUBIT=30
	OUTEST=coeficientes_segmento&s 
NOITPRINT ; model segmento11 = (1 - (EXP(-(t/a)**b))); *Weibull distribution function; ; PARMS a=0.4 b=0.5 ; RUN;
1 REPLY 1

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 657 views
  • 0 likes
  • 2 in conversation