<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20689">
<style type="text/css"><!--html { font-family: "Color Emoji", "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; }--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, 
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, 
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;"><div>Será que com a função solve (ou outra função) eu posso resolver a derivada dessa equação</div><div> (exp(b0 + b1/s + b2/x + b3 * (id1/x) * log(ab1) + b4 * (1 - id1/x) +b5 * (1 - id1/x) * s) * (b4 * (id1/x^2) - (b3 * (id1/x^2) *log(ab1) + b2/x^2) + b5 * (id1/x^2) * s)/x - exp(b0 + b1/s +b2/x + b3 * (id1/x) * log(ab1) + b4 * (1 - id1/x) + b5 *(1 - id1/x) * s)/x^2)<br></div><div data-signatureblock="true"><div>sendo que sei os valores dos betas, id1, ab1 e s. Ou seja, obter o valor de x. </div><div>Desde já agradeço!<br></div><div><br></div><div><br></div></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style='line-height: 15pt; letter-spacing: 0.02em; font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;'><b>De:</b> <a href="mailto:paulojus@leg.ufpr.br" target="_parent">Paulo Justiniano</a><br><b>Enviado:</b> ‎terça-feira‎, ‎28‎ de ‎abril‎ de ‎2015 ‎12‎:‎41<br><b>Para:</b> <a href="mailto:r-br@listas.c3sl.ufpr.br" target="_parent">r-br@listas.c3sl.ufpr.br</a></font></div></div><div><br></div><div dir=""><div id="readingPaneBodyContent">mais detalhadamente solve() resolve um sistema de equações lineares<br><br>Description:<br><br>      This generic function solves the equation ‘a %*% x = b’ for ‘x’,<br>      where ‘b’ can be either a vector or a matrix.<br><br>O uso para inverter matrizes é possivel mas NAO RECOMENDADO na maioria dos <br>casos<br><br>Por exemplo, se voce tem um sistema<br><br>A x = b  (A matrix, x e b vetores, com dimensões compatível<br><br>escrevemos x = A^{-1} b<br><br>mas ***NAO*** devemos resolver no R com  x <- solve(A) %*% b<br><br>e sim<br><br>x <- solve(A,b)<br><br><br><br><br><br><br>On Mon, 27 Apr 2015, Wagner Wolff wrote:<br><br>> A função solve retorna a inversa de uma matriz, acho que vc se confundiu com o solver do excell,<br>> para seu caso acho q função adequada é a optim ou optmise, segue um exemplo<br>> <br>> http://www.sr.bham.ac.uk/~ajrs/R/r-analyse_data.html<br>> <br>> Em 27 de abril de 2015 18:35, <aalmeidaalessandro@gmail.com> escreveu:<br>> <br>> Boa noite.<br>> <br>> Utilizando a função solve, gostaria de saber como posso isolar uma variável de uma função?<br>> Por exemplo, função simples, x + y = a, ficaria y = a-x.<br>> <br>> Obrigado!<br>> <br>> <br>> <br>> _______________________________________________<br>> R-br mailing list<br>> R-br@listas.c3sl.ufpr.br<br>> https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br<br>> Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo reproduzível.<br>> <br>> <br>> <br>><br></div></div></div>
</body>
</html>