<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: proc transreg applied on Annual Percentage Rate in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406507#M21169</link>
    <description>&lt;P&gt;What have you tried? I assume the explanatory variables are N, I, and Principal.&amp;nbsp; Which&amp;nbsp;variable is the response?&amp;nbsp; What is the purpose&amp;nbsp; of the other variables like Q12 and I12?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two suggestion: (1) Look into PROC NLIN, and (2)&amp;nbsp;The&amp;nbsp;data might be easier to fit if you take the LOG of both sides of the APR equation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2017 13:10:30 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-10-23T13:10:30Z</dc:date>
    <item>
      <title>proc transreg applied on Annual Percentage Rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406483#M21167</link>
      <description>&lt;P style="margin: 0cm 0cm 12pt;"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;I'm interested in applying the transreg procedure in order to regress the APR on interest rate and terms.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 12pt;"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Imagen sin título.png" style="width: 220px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16140i380FBAFEEE0B7482/image-size/large?v=v2&amp;amp;px=999" role="button" title="Imagen sin título.png" alt="Imagen sin título.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 12pt;"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;The apr&amp;nbsp;can be calculated like this:&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 12pt;"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&lt;BR /&gt; As the APR can easily be calculated by the formula&lt;BR /&gt; I generate a training data set via IML.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;IML&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*Holds 100x3 randomly generated values*/&lt;/P&gt;
&lt;P&gt;RANDOM=J(&lt;STRONG&gt;100&lt;/STRONG&gt;,&lt;STRONG&gt;3&lt;/STRONG&gt;,&lt;STRONG&gt;0&lt;/STRONG&gt;);&lt;/P&gt;
&lt;P&gt;CALL RANDGEN(RANDOM, "UNIFORM");&lt;/P&gt;
&lt;P&gt;RANDOM=RANDOM-&lt;STRONG&gt;0.5&lt;/STRONG&gt;+&lt;STRONG&gt;1&lt;/STRONG&gt; ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*Center random matrix around number of terms, yearly interest rate, and principal*/&lt;/P&gt;
&lt;P&gt;CENTER={&lt;STRONG&gt;240&lt;/STRONG&gt; &lt;STRONG&gt;0.036&lt;/STRONG&gt; &lt;STRONG&gt;100000&lt;/STRONG&gt;};&lt;/P&gt;
&lt;P&gt;RANDOM2=RANDOM#CENTER;&lt;/P&gt;
&lt;P&gt;RANDOM2[,&lt;STRONG&gt;1&lt;/STRONG&gt;]=CEIL(RANDOM2[,&lt;STRONG&gt;1&lt;/STRONG&gt;]); /*allow only integers for number of terms*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*create matrix that holds i12 and (1+i12)*/&lt;/P&gt;
&lt;P&gt;RANDOM3=RANDOM2[,&lt;STRONG&gt;2&lt;/STRONG&gt;] #(&lt;STRONG&gt;1&lt;/STRONG&gt;/&lt;STRONG&gt;12&lt;/STRONG&gt;) || RANDOM2[,&lt;STRONG&gt;2&lt;/STRONG&gt;]#(&lt;STRONG&gt;1&lt;/STRONG&gt;/&lt;STRONG&gt;12&lt;/STRONG&gt;) + &lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*create matrix that stores the monthly payment*/&lt;/P&gt;
&lt;P&gt;RANDOM4=J(&lt;STRONG&gt;100&lt;/STRONG&gt;,&lt;STRONG&gt;1&lt;/STRONG&gt;,&lt;STRONG&gt;0&lt;/STRONG&gt;);&lt;/P&gt;
&lt;P&gt;RANDOM10=RANDOM4;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*alt1: calculate monthly payment with do loop*/&lt;/P&gt;
&lt;P&gt;DO CT2=&lt;STRONG&gt;1&lt;/STRONG&gt; TO NROW(RANDOM);&lt;/P&gt;
&lt;P&gt;RANDOM4[CT2]=RANDOM2[CT2,&lt;STRONG&gt;3&lt;/STRONG&gt;] *&lt;/P&gt;
&lt;P&gt;((RANDOM3[CT2,&lt;STRONG&gt;2&lt;/STRONG&gt;]##RANDOM2[CT2,&lt;STRONG&gt;1&lt;/STRONG&gt;]-&lt;STRONG&gt;1&lt;/STRONG&gt;)/(RANDOM3[CT2,&lt;STRONG&gt;1&lt;/STRONG&gt;]*RANDOM3[CT2,&lt;STRONG&gt;2&lt;/STRONG&gt;]##RANDOM2[CT2,&lt;STRONG&gt;1&lt;/STRONG&gt;]))##-&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;END;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*alt2: calculate monthly payment via vecorized approach*/&lt;/P&gt;
&lt;P&gt;RANDOM10=RANDOM2[,&lt;STRONG&gt;3&lt;/STRONG&gt;] # ((RANDOM3[,&lt;STRONG&gt;2&lt;/STRONG&gt;]##RANDOM2[,&lt;STRONG&gt;1&lt;/STRONG&gt;]-&lt;STRONG&gt;1&lt;/STRONG&gt;) #&lt;/P&gt;
&lt;P&gt;(RANDOM3[,&lt;STRONG&gt;1&lt;/STRONG&gt;]#RANDOM3[,&lt;STRONG&gt;2&lt;/STRONG&gt;]##RANDOM2[,&lt;STRONG&gt;1&lt;/STRONG&gt;])##-&lt;STRONG&gt;1&lt;/STRONG&gt;)##-&lt;STRONG&gt;1&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*control both alt give same result*/&lt;/P&gt;
&lt;P&gt;/*PRINT RANDOM10 RANDOM4;*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*convert monthly payment to percentage of principal*/&lt;/P&gt;
&lt;P&gt;CPERC=RANDOM4 # (RANDOM2[,&lt;STRONG&gt;3&lt;/STRONG&gt;]##-&lt;STRONG&gt;1&lt;/STRONG&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TITEL={"N" "I" "PRINCIPAL" "Q12" "I12" "PAYMENT" "PAYMENT_PERC" };&lt;/P&gt;
&lt;P&gt;AMORT= RANDOM2 || RANDOM3 || RANDOM4 || CPERC ;&lt;/P&gt;
&lt;P&gt;/*PRINT AMORT [COLNAME=TITEL];*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;create TRAINING from AMORT[colname=TITEL];&lt;/P&gt;
&lt;P&gt;append from AMORT;&lt;/P&gt;
&lt;P&gt;close TRAINING;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 12pt;"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&lt;BR /&gt; &lt;BR /&gt; How can I use proc transreg to approximate the APR via a regression formula?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 12pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 12pt;"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;Thank you, I would like to understand it.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 12pt;"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;&lt;FONT color="#000000" face="Times New Roman" size="3"&gt;Without success I tried&amp;nbsp; to make a contourplot having on the&amp;nbsp;box axis&amp;nbsp;i and n and as response the&amp;nbsp;payment in percentage. &amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 12:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406483#M21167</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2017-10-23T12:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg applied on Annual Percentage Rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406490#M21168</link>
      <description>&lt;P&gt;To better explain myself:&lt;/P&gt;
&lt;P&gt;Imagine I didn't know how to calculate the monthly&amp;nbsp;payment, how could I use Proc Transreg to resemble the "real" unknown formula that generated the data set?&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 12:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406490#M21168</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2017-10-23T12:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg applied on Annual Percentage Rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406507#M21169</link>
      <description>&lt;P&gt;What have you tried? I assume the explanatory variables are N, I, and Principal.&amp;nbsp; Which&amp;nbsp;variable is the response?&amp;nbsp; What is the purpose&amp;nbsp; of the other variables like Q12 and I12?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two suggestion: (1) Look into PROC NLIN, and (2)&amp;nbsp;The&amp;nbsp;data might be easier to fit if you take the LOG of both sides of the APR equation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406507#M21169</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-10-23T13:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg applied on Annual Percentage Rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406515#M21170</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;for your fast response.&lt;/P&gt;
&lt;P&gt;I want to model the response payment in percentage by the explanatory variables N :=number of total repayment terms in month and I12:=monthly interest rate and Q12:=(I12 +1). That way I'm using all the variables that appear in the mathematical formula for calculating the periodic payment expressed as a percentage of the principal or in absolute terms when multiplied by the principal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As the formula is a quotient and its denominator and its numerator both have the term&amp;nbsp;"Q12 to the power of N" I cannot even find a starting point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll look for Proc NLIN. Hopefully, this is still helpful after clarifying this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Arne&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 13:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406515#M21170</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2017-10-23T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg applied on Annual Percentage Rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406679#M21175</link>
      <description>&lt;P&gt;OK, log to both sides of the above stated formula&amp;nbsp;results in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P=1;&lt;/P&gt;
&lt;P&gt;q=(1+i)&lt;/P&gt;
&lt;P&gt;A = (i*q^n)/(q^n – 1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ln(A)=(ln(i) + n*ln(q)) - &lt;FONT color="#3366ff"&gt;(ln(q^n – 1)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose the &lt;FONT color="#3366ff"&gt;log of sums&lt;/FONT&gt; cannot be simplified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I hadn’t this term I would see clearly that a polynomial solution of the original variables and their logs could perfectly fit the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I keep going despite of this drawback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create the log_variables of interest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; TEMP;&lt;/P&gt;
&lt;P&gt;SET Training;&lt;/P&gt;
&lt;P&gt;LN_Q=LOG(Q);&lt;/P&gt;
&lt;P&gt;LN_CUOTAPERC=LOG(CUOTAPERC);&lt;/P&gt;
&lt;P&gt;LN_IP=LOG(IP);&lt;/P&gt;
&lt;P&gt;LN_N=LOG(N);&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create a new data set with the interaction terms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;logistic&lt;/STRONG&gt; data=TEMP outdesign=EFF outdesignonly ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; effect poly2 = polynomial(N LN_IP LN_Q / degree=&lt;STRONG&gt;3&lt;/STRONG&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; model LN_CUOTAPERC = poly2 CUOTAPERC IP Q CUOTA CAP;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ID&amp;nbsp; CUOTAPERC;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create a macro variable that holds all the variables.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; _NULL_;&lt;/P&gt;
&lt;P&gt;SET SASHELP.VCOLUMN;&lt;/P&gt;
&lt;P&gt;WHERE memname="EFF" AND libname="WORK";&lt;/P&gt;
&lt;P&gt;FORMAT ST $1000.;&lt;/P&gt;
&lt;P&gt;RETAIN ST;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ST=CATX(" ", ST, "'"||STRIP(NAME)||"'N");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;CALL SYMPUTX("VARS",ST);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;glmselect&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; DATA=EFF ;&lt;/P&gt;
&lt;P&gt;MODEL LN_CUOTAPERC = 'N'N 'LN_IP'N 'LN_Q'N 'N^2'N 'N*LN_IP'N 'N*LN_Q'N 'LN_IP^2'N 'LN_IP*LN_Q'N 'LN_Q^2'N 'N^3'N&lt;/P&gt;
&lt;P&gt;'N^2*LN_IP'N 'N^2*LN_Q'N 'N*LN_IP^2'N 'N*LN_IP*LN_Q'N 'N*LN_Q^2'N&lt;/P&gt;
&lt;P&gt;'LN_IP^3'N 'LN_IP^2*LN_Q'N 'LN_IP*LN_Q^2'N 'LN_Q^3'N / selection=stepwise ;&lt;/P&gt;
&lt;P&gt;output out=TEST PREDICTED=P;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DATA&lt;/STRONG&gt; TEST1;&lt;/P&gt;
&lt;P&gt;SET TEST;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;COEF_REG=EXP(P);&lt;/P&gt;
&lt;P&gt;COEF_CTR=EXP(LN_CUOTAPERC);&lt;/P&gt;
&lt;P&gt;CUOTA_ORIG=CAP*COEF_CTR;&lt;/P&gt;
&lt;P&gt;CUOTA_REG=CAP*COEF_REG;&lt;/P&gt;
&lt;P&gt;KEEP CUOTA CUOTA_: COEF_:;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fit looks quite good.&lt;/P&gt;
&lt;P&gt;But I'm sure that there are many&amp;nbsp;more accurate&amp;nbsp;ways.&lt;/P&gt;
&lt;P&gt;The Proc NLIN in my understanding doesn't help me out because I'd have to make first guesses about the parameters. And as I'd mentioned before, I'd like to simulate that I don't know the underlying formula.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406679#M21175</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2017-10-23T18:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg applied on Annual Percentage Rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406684#M21177</link>
      <description>&lt;P&gt;Sorry, but I still don't understand your problem, so someone else will have to help you. I don't understand what parameter(s) you trying to fit.&amp;nbsp;Regression&amp;nbsp;estimates PARAMETERS that relate the independent and dependent variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I question whether you want to use Q12=I12+1 as one of your explanatory variables. That will&amp;nbsp;cause collinearity in your regressors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406684#M21177</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-10-23T18:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg applied on Annual Percentage Rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406704#M21178</link>
      <description>&lt;P&gt;With your suggestions you have taken me further on my&amp;nbsp;learning curve. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I&amp;nbsp;get a Llttle bit upset that&amp;nbsp;I cannot succeed in&amp;nbsp;delivering my point and I&amp;nbsp;feel misundertood.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For sure I know that "Regression&amp;nbsp;estimates PARAMETERS that relate the independent and dependent variables."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's the reason why I want to predict the payment rate by the indpendent variables interest&amp;nbsp;rate and re-payment terms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I want to get a regression formula because I assume&amp;nbsp;for the sake of&amp;nbsp;the learning exercise that&amp;nbsp;I don't know the APR formula to calculate it.&lt;/P&gt;
&lt;P&gt;The next time I throw in interest rate and numer of re-payment terms&amp;nbsp;I want to predict the payment rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/406704#M21178</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2017-10-23T18:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc transreg applied on Annual Percentage Rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/443251#M23281</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;Do you understand what I´m trying to achieve?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the overview excerpt from the NLIN manual:&lt;/P&gt;
&lt;P&gt;The NLIN procedure produces least squares or weighted least squares estimates of&lt;BR /&gt;the parameters of a nonlinear model. Nonlinear models are more difficult to specify&lt;BR /&gt;and estimate than linear models. Instead of simply listing regressor variables, you&lt;BR /&gt;must write the regression expression, declare parameter names, and supply initial&lt;BR /&gt;parameter values. Some models are difficult to fit, and there is no guarantee that the&lt;BR /&gt;procedure can fit the model successfully.&lt;BR /&gt;For each nonlinear model to be analyzed, you must specify the model (using a single&lt;BR /&gt;dependent variable) and the names and starting values of the parameters to be&lt;BR /&gt;estimated.&lt;/P&gt;
&lt;P&gt;...I need to specify a model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But what if I didn't know that the response variable was generated by the&amp;nbsp;&lt;!--pc--&gt;Annual Percentage Rate &lt;STRONG&gt;(APR&lt;/STRONG&gt;)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My best guess is to generate many interaction terms of the independent variables (including their inverse) and run a regression proc that&amp;nbsp;allows&amp;nbsp;for model selection.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do I do this? I have many formulas in excel sheets that calculate monthly payments and return rates like ROE and all at some extent discount future flows to get a comparable current value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don´t want to transfer all these functions to SAS IML and instead I want to have a regression formula that predicts the response variable, here the monthly payment, on the scenario of many combinations of the input variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 11:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-transreg-applied-on-Annual-Percentage-Rate/m-p/443251#M23281</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2018-03-07T11:57:28Z</dc:date>
    </item>
  </channel>
</rss>

