| <!-- HTML header for doxygen 1.8.4--> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.10"/> |
| <meta name="keywords" content="madlib,postgres,greenplum,machine learning,data mining,deep learning,ensemble methods,data science,market basket analysis,affinity analysis,pca,lda,regression,elastic net,huber white,proportional hazards,k-means,latent dirichlet allocation,bayes,support vector machines,svm"/> |
| <title>MADlib: marginal.sql_in File Reference</title> |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="dynsections.js"></script> |
| <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtreedata.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(initResizable); |
| $(window).load(resizeHeight); |
| </script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/searchdata.js"></script> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(function() { init_search(); }); |
| </script> |
| <script type="text/x-mathjax-config"> |
| MathJax.Hub.Config({ |
| extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"], |
| jax: ["input/TeX","output/HTML-CSS"], |
| }); |
| </script><script src="../mathjax/MathJax.js"></script> |
| <!-- hack in the navigation tree --> |
| <script type="text/javascript" src="navtree_hack.js"></script> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| <link href="madlib_extra.css" rel="stylesheet" type="text/css"/> |
| <!-- google analytics --> |
| <script> |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| ga('create', 'UA-45382226-1', 'auto'); |
| ga('send', 'pageview'); |
| </script> |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| <td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname"> |
| <span id="projectnumber">1.8</span> |
| </div> |
| <div id="projectbrief">User Documentation for MADlib</div> |
| </td> |
| <td> <div id="MSearchBox" class="MSearchBoxInactive"> |
| <span class="left"> |
| <img id="MSearchSelect" src="search/mag_sel.png" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| alt=""/> |
| <input type="text" id="MSearchField" value="Search" accesskey="S" |
| onfocus="searchBox.OnSearchFieldFocus(true)" |
| onblur="searchBox.OnSearchFieldFocus(false)" |
| onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| </span><span class="right"> |
| <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| </span> |
| </div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.10 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| </div><!-- top --> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| <div id="nav-sync" class="sync"></div> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| $(document).ready(function(){initNavTree('marginal_8sql__in.html','');}); |
| </script> |
| <div id="doc-content"> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| </div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div class="header"> |
| <div class="summary"> |
| <a href="#func-members">Functions</a> </div> |
| <div class="headertitle"> |
| <div class="title">marginal.sql_in File Reference</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| |
| <p>SQL functions for linear regression. |
| <a href="#details">More...</a></p> |
| <table class="memberdecls"> |
| <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| Functions</h2></td></tr> |
| <tr class="memitem:a2115a795562bc2928c3858fc55104c4b"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a2115a795562bc2928c3858fc55104c4b">marginal_logregr_step_transition</a> (float8[] state, boolean y, float8[] x, float8[] coef)</td></tr> |
| <tr class="separator:a2115a795562bc2928c3858fc55104c4b"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ae44a992f8bd650b5c1f0c2ffae7bb542"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#ae44a992f8bd650b5c1f0c2ffae7bb542">marginal_logregr_step_merge_states</a> (float8[] state1, float8[] state2)</td></tr> |
| <tr class="separator:ae44a992f8bd650b5c1f0c2ffae7bb542"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ac4e06a28a76651de70768457575bb9e0"><td class="memItemLeft" align="right" valign="top">marginal_logregr_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#ac4e06a28a76651de70768457575bb9e0">marginal_logregr_step_final</a> (float8[] state)</td></tr> |
| <tr class="separator:ac4e06a28a76651de70768457575bb9e0"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a3286b644d2d51a8f2874896dc1b5d925"><td class="memItemLeft" align="right" valign="top">aggregate marginal_logregr_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a3286b644d2d51a8f2874896dc1b5d925">marginal_logregr</a> (boolean dependentVariable, float8[] independentVariables, float8[] coef)</td></tr> |
| <tr class="memdesc:a3286b644d2d51a8f2874896dc1b5d925"><td class="mdescLeft"> </td><td class="mdescRight">Compute marginal effects for logistic regression. <a href="#a3286b644d2d51a8f2874896dc1b5d925">More...</a><br /></td></tr> |
| <tr class="separator:a3286b644d2d51a8f2874896dc1b5d925"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a9517d679ee4209126895445cbed51fe3"><td class="memItemLeft" align="right" valign="top">varchar </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a9517d679ee4209126895445cbed51fe3">margins_logregr</a> (varchar message)</td></tr> |
| <tr class="separator:a9517d679ee4209126895445cbed51fe3"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a63aba4148ce9bfcafea81d08e3797a1f"><td class="memItemLeft" align="right" valign="top">varchar </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a63aba4148ce9bfcafea81d08e3797a1f">margins_logregr</a> ()</td></tr> |
| <tr class="separator:a63aba4148ce9bfcafea81d08e3797a1f"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a99dd17e30e4fcc2f39da4e671406bcea"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a99dd17e30e4fcc2f39da4e671406bcea">margins_logregr</a> (varchar source_table, varchar out_table, varchar dependent_varname, varchar independent_varname, varchar grouping_cols, integer[] marginal_vars, integer max_iter, varchar optimizer, float8 tolerance, boolean verbose_mode)</td></tr> |
| <tr class="memdesc:a99dd17e30e4fcc2f39da4e671406bcea"><td class="mdescLeft"> </td><td class="mdescRight">A wrapper function for the various marginal regression analyzes. <a href="#a99dd17e30e4fcc2f39da4e671406bcea">More...</a><br /></td></tr> |
| <tr class="separator:a99dd17e30e4fcc2f39da4e671406bcea"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a4e0b284b130524ff36b44281fa9e3fb9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a4e0b284b130524ff36b44281fa9e3fb9">margins_logregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable)</td></tr> |
| <tr class="memdesc:a4e0b284b130524ff36b44281fa9e3fb9"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variables. <a href="#a4e0b284b130524ff36b44281fa9e3fb9">More...</a><br /></td></tr> |
| <tr class="separator:a4e0b284b130524ff36b44281fa9e3fb9"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af520629d3624d30cdcdbce247d89ac7d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#af520629d3624d30cdcdbce247d89ac7d">margins_logregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, varchar grouping_cols)</td></tr> |
| <tr class="memdesc:af520629d3624d30cdcdbce247d89ac7d"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#af520629d3624d30cdcdbce247d89ac7d">More...</a><br /></td></tr> |
| <tr class="separator:af520629d3624d30cdcdbce247d89ac7d"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ae84af4141c1730d7299210ad5005ffe6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#ae84af4141c1730d7299210ad5005ffe6">margins_logregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, varchar grouping_cols, integer[] marginal_vars)</td></tr> |
| <tr class="memdesc:ae84af4141c1730d7299210ad5005ffe6"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#ae84af4141c1730d7299210ad5005ffe6">More...</a><br /></td></tr> |
| <tr class="separator:ae84af4141c1730d7299210ad5005ffe6"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a7ad0356ba6d3edec11d4ee6904ff8588"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a7ad0356ba6d3edec11d4ee6904ff8588">margins_logregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, varchar grouping_cols, integer[] marginal_vars, integer max_iter)</td></tr> |
| <tr class="memdesc:a7ad0356ba6d3edec11d4ee6904ff8588"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a7ad0356ba6d3edec11d4ee6904ff8588">More...</a><br /></td></tr> |
| <tr class="separator:a7ad0356ba6d3edec11d4ee6904ff8588"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a9a9ff25e0ce2220f14e6514a84e71d8a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a9a9ff25e0ce2220f14e6514a84e71d8a">margins_logregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, varchar grouping_cols, integer[] marginal_vars, integer max_iter, varchar optimizer)</td></tr> |
| <tr class="memdesc:a9a9ff25e0ce2220f14e6514a84e71d8a"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a9a9ff25e0ce2220f14e6514a84e71d8a">More...</a><br /></td></tr> |
| <tr class="separator:a9a9ff25e0ce2220f14e6514a84e71d8a"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a2018fd008c71953a32057d34de54acfc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a2018fd008c71953a32057d34de54acfc">margins_logregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, varchar grouping_cols, integer[] marginal_vars, integer max_iter, varchar optimizer, float8 tolerance)</td></tr> |
| <tr class="memdesc:a2018fd008c71953a32057d34de54acfc"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a2018fd008c71953a32057d34de54acfc">More...</a><br /></td></tr> |
| <tr class="separator:a2018fd008c71953a32057d34de54acfc"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a7b8a7cf298ea51fc16de975e2503615a"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a7b8a7cf298ea51fc16de975e2503615a">mlogregr_marginal_step_transition</a> (float8[] state, integer y, integer num_categories, integer ref_category, float8[] x, float8[] coef)</td></tr> |
| <tr class="separator:a7b8a7cf298ea51fc16de975e2503615a"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a82ac74fd7aec70b7596bc2b4776742fa"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a82ac74fd7aec70b7596bc2b4776742fa">mlogregr_marginal_step_merge_states</a> (float8[] state1, float8[] state2)</td></tr> |
| <tr class="separator:a82ac74fd7aec70b7596bc2b4776742fa"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ad80d7df29226a2529f9f80607f2a983e"><td class="memItemLeft" align="right" valign="top">marginal_mlogregr_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#ad80d7df29226a2529f9f80607f2a983e">mlogregr_marginal_step_final</a> (float8[] state)</td></tr> |
| <tr class="separator:ad80d7df29226a2529f9f80607f2a983e"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aaf0b3cc34b99d4b47334bdde2d139b81"><td class="memItemLeft" align="right" valign="top">aggregate marginal_mlogregr_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#aaf0b3cc34b99d4b47334bdde2d139b81">marginal_mlogregr</a> (integer dependentVariable, integer num_categories, integer ref_category, float8[] independentVariables, float8[] coef)</td></tr> |
| <tr class="memdesc:aaf0b3cc34b99d4b47334bdde2d139b81"><td class="mdescLeft"> </td><td class="mdescRight">Compute marginal effects for multinomial logistic regression. <a href="#aaf0b3cc34b99d4b47334bdde2d139b81">More...</a><br /></td></tr> |
| <tr class="separator:aaf0b3cc34b99d4b47334bdde2d139b81"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ae39ad0e1beca060fd153dba35901a4e7"><td class="memItemLeft" align="right" valign="top">varchar </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#ae39ad0e1beca060fd153dba35901a4e7">margins_mlogregr</a> (varchar message)</td></tr> |
| <tr class="separator:ae39ad0e1beca060fd153dba35901a4e7"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a1e152bdb5c5ac347b5621350a396a33f"><td class="memItemLeft" align="right" valign="top">varchar </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a1e152bdb5c5ac347b5621350a396a33f">margins_mlogregr</a> ()</td></tr> |
| <tr class="separator:a1e152bdb5c5ac347b5621350a396a33f"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aedeea68ce9db3c1ad1ce90219bb02fa0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#aedeea68ce9db3c1ad1ce90219bb02fa0">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_varname, varchar independent_varname, integer ref_category, varchar grouping_cols, integer[] marginal_vars, varchar optimizer_params, boolean verbose_mode)</td></tr> |
| <tr class="memdesc:aedeea68ce9db3c1ad1ce90219bb02fa0"><td class="mdescLeft"> </td><td class="mdescRight">A wrapper function for the various marginal multinomial regression. <a href="#aedeea68ce9db3c1ad1ce90219bb02fa0">More...</a><br /></td></tr> |
| <tr class="separator:aedeea68ce9db3c1ad1ce90219bb02fa0"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a2837cc6b3ea201682db76102cace3d0e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a2837cc6b3ea201682db76102cace3d0e">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_varname, varchar independent_varname, integer ref_category, varchar grouping_cols, integer[] marginal_vars, varchar optimizer_params)</td></tr> |
| <tr class="memdesc:a2837cc6b3ea201682db76102cace3d0e"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a2837cc6b3ea201682db76102cace3d0e">More...</a><br /></td></tr> |
| <tr class="separator:a2837cc6b3ea201682db76102cace3d0e"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a79e7c2ad06348e95afea81d4b6c6c9f7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a79e7c2ad06348e95afea81d4b6c6c9f7">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_varname, varchar independent_varname, integer ref_category, varchar grouping_cols, integer[] marginal_vars, integer max_iter, varchar optimizer, float8 tolerance, boolean verbose_mode)</td></tr> |
| <tr class="separator:a79e7c2ad06348e95afea81d4b6c6c9f7"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a0827f2605803847a34e26f31b24529ca"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a0827f2605803847a34e26f31b24529ca">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, integer ref_category, varchar grouping_cols, integer[] marginal_vars, integer max_iter)</td></tr> |
| <tr class="memdesc:a0827f2605803847a34e26f31b24529ca"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a0827f2605803847a34e26f31b24529ca">More...</a><br /></td></tr> |
| <tr class="separator:a0827f2605803847a34e26f31b24529ca"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a80368510f0bcf8633b017b82c9744ce7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a80368510f0bcf8633b017b82c9744ce7">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, integer ref_category, varchar grouping_cols, integer[] marginal_vars, integer max_iter, varchar optimizer)</td></tr> |
| <tr class="memdesc:a80368510f0bcf8633b017b82c9744ce7"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a80368510f0bcf8633b017b82c9744ce7">More...</a><br /></td></tr> |
| <tr class="separator:a80368510f0bcf8633b017b82c9744ce7"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:afaa380d3b7ce111d6a81b5b0fa7483f3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#afaa380d3b7ce111d6a81b5b0fa7483f3">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, integer ref_category, varchar grouping_cols, integer[] marginal_vars, integer max_iter, varchar optimizer, float8 tolerance)</td></tr> |
| <tr class="memdesc:afaa380d3b7ce111d6a81b5b0fa7483f3"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#afaa380d3b7ce111d6a81b5b0fa7483f3">More...</a><br /></td></tr> |
| <tr class="separator:afaa380d3b7ce111d6a81b5b0fa7483f3"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a90bd35d3bb7a3f94feeeb08f9ead8a55"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a90bd35d3bb7a3f94feeeb08f9ead8a55">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable)</td></tr> |
| <tr class="memdesc:a90bd35d3bb7a3f94feeeb08f9ead8a55"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variables. <a href="#a90bd35d3bb7a3f94feeeb08f9ead8a55">More...</a><br /></td></tr> |
| <tr class="separator:a90bd35d3bb7a3f94feeeb08f9ead8a55"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af0ef176b7f0d0c518d3a16182ac6117d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#af0ef176b7f0d0c518d3a16182ac6117d">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, integer ref_category)</td></tr> |
| <tr class="memdesc:af0ef176b7f0d0c518d3a16182ac6117d"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variables. <a href="#af0ef176b7f0d0c518d3a16182ac6117d">More...</a><br /></td></tr> |
| <tr class="separator:af0ef176b7f0d0c518d3a16182ac6117d"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a7e66918e0fcd02f8492347604474a29a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a7e66918e0fcd02f8492347604474a29a">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, integer ref_category, varchar grouping_cols)</td></tr> |
| <tr class="memdesc:a7e66918e0fcd02f8492347604474a29a"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a7e66918e0fcd02f8492347604474a29a">More...</a><br /></td></tr> |
| <tr class="separator:a7e66918e0fcd02f8492347604474a29a"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a8311df1f591cff8d30ca8df816c0cfca"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a8311df1f591cff8d30ca8df816c0cfca">margins_mlogregr</a> (varchar source_table, varchar out_table, varchar dependent_variable, varchar independent_variable, integer ref_category, varchar grouping_cols, integer[] marginal_vars)</td></tr> |
| <tr class="memdesc:a8311df1f591cff8d30ca8df816c0cfca"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a8311df1f591cff8d30ca8df816c0cfca">More...</a><br /></td></tr> |
| <tr class="separator:a8311df1f591cff8d30ca8df816c0cfca"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aa4edc871f05eb57354a82a16f85e0ee7"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#aa4edc871f05eb57354a82a16f85e0ee7">__sub_array</a> (float8[] value_array, integer[] index_array)</td></tr> |
| <tr class="separator:aa4edc871f05eb57354a82a16f85e0ee7"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a6f238f587436d904d2206e7edb795bb1"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a6f238f587436d904d2206e7edb795bb1">__margins_linregr_int_transition</a> (float8[] state, float8[] x, float8[] coef, float8[] vcov, float8[] derivative)</td></tr> |
| <tr class="separator:a6f238f587436d904d2206e7edb795bb1"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a0db48e48baea1ab56841e5b57083d939"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a0db48e48baea1ab56841e5b57083d939">__margins_linregr_int_merge</a> (float8[] state1, float8[] state2)</td></tr> |
| <tr class="separator:a0db48e48baea1ab56841e5b57083d939"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a946260ec369f98b5b8d584d3e63fcf80"><td class="memItemLeft" align="right" valign="top">margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a946260ec369f98b5b8d584d3e63fcf80">__margins_linregr_int_final</a> (float8[] state)</td></tr> |
| <tr class="separator:a946260ec369f98b5b8d584d3e63fcf80"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a228e94d07a25adef545e7f1948648b68"><td class="memItemLeft" align="right" valign="top">aggregate margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a228e94d07a25adef545e7f1948648b68">__margins_int_linregr_agg</a> (float8[] independentVariables, float8[] coef, float8[] vcov, float8[] derivative_matrix)</td></tr> |
| <tr class="memdesc:a228e94d07a25adef545e7f1948648b68"><td class="mdescLeft"> </td><td class="mdescRight">Compute marginal effects for linear regression. <a href="#a228e94d07a25adef545e7f1948648b68">More...</a><br /></td></tr> |
| <tr class="separator:a228e94d07a25adef545e7f1948648b68"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5aaf126f78c5eb0f4c7eaae3ebb53f13"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a5aaf126f78c5eb0f4c7eaae3ebb53f13">__margins_logregr_int_transition</a> (float8[] state, float8[] x, float8[] coef, float8[] vcov, float8[] basis_indices, float8[] derivative, float8[] categorical_indices, float8[] x_set, float8[] x_unset)</td></tr> |
| <tr class="separator:a5aaf126f78c5eb0f4c7eaae3ebb53f13"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a7899421c84eaf701949c7e430dc3eb15"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a7899421c84eaf701949c7e430dc3eb15">__margins_logregr_int_merge</a> (float8[] state1, float8[] state2)</td></tr> |
| <tr class="separator:a7899421c84eaf701949c7e430dc3eb15"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a7ffb6d8dd35dce6deef315458a4f85cd"><td class="memItemLeft" align="right" valign="top">margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a7ffb6d8dd35dce6deef315458a4f85cd">__margins_logregr_int_final</a> (float8[] state)</td></tr> |
| <tr class="separator:a7ffb6d8dd35dce6deef315458a4f85cd"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aa419eeb4ee78982d5ce8e3fe102f28c3"><td class="memItemLeft" align="right" valign="top">aggregate margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#aa419eeb4ee78982d5ce8e3fe102f28c3">__margins_int_logregr_agg</a> (float8[] independentVariables, float8[] coef, float8[] vcov, float8[] basis_indices, float8[] derivative_matrix, float8[] categorical_indices, float8[] x_set, float8[] x_unset)</td></tr> |
| <tr class="memdesc:aa419eeb4ee78982d5ce8e3fe102f28c3"><td class="mdescLeft"> </td><td class="mdescRight">Compute marginal effects for logistic regression. <a href="#aa419eeb4ee78982d5ce8e3fe102f28c3">More...</a><br /></td></tr> |
| <tr class="separator:aa419eeb4ee78982d5ce8e3fe102f28c3"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:ade4ae58316e82c1de75f65f383043532"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#ade4ae58316e82c1de75f65f383043532">__margins_mlogregr_int_transition</a> (float8[] state, float8[] x, float8[] coef, float8[] vcov, float8[] basis_indices, float8[] derivative_matrix, float8[] categorical_indices, float8[] x_set, float8[] x_unset)</td></tr> |
| <tr class="separator:ade4ae58316e82c1de75f65f383043532"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a8c1e7d827ee07f3f6532cdd12a4e1d29"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a8c1e7d827ee07f3f6532cdd12a4e1d29">__margins_mlogregr_int_merge</a> (float8[] state1, float8[] state2)</td></tr> |
| <tr class="separator:a8c1e7d827ee07f3f6532cdd12a4e1d29"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a64e8f06dc5425379065f12eacb95ad05"><td class="memItemLeft" align="right" valign="top">margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a64e8f06dc5425379065f12eacb95ad05">__margins_mlogregr_int_final</a> (float8[] state)</td></tr> |
| <tr class="separator:a64e8f06dc5425379065f12eacb95ad05"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a56aec1f2d980a739df09e09ca52b34f4"><td class="memItemLeft" align="right" valign="top">aggregate margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a56aec1f2d980a739df09e09ca52b34f4">__margins_int_mlogregr_agg</a> (float8[] independentVariables, float8[] coef, float8[] vcov, float8[] basis_indices, float8[] derivative_matrix, float8[] categorical_indices, float8[] x_set, float8[] x_unset)</td></tr> |
| <tr class="memdesc:a56aec1f2d980a739df09e09ca52b34f4"><td class="mdescLeft"> </td><td class="mdescRight">Compute marginal effects for multinomial logistic regression. <a href="#a56aec1f2d980a739df09e09ca52b34f4">More...</a><br /></td></tr> |
| <tr class="separator:a56aec1f2d980a739df09e09ca52b34f4"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:af82b77209159da1b8bc75b39cc8abd98"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#af82b77209159da1b8bc75b39cc8abd98">__margins_coxph_int_transition</a> (float8[] state, float8[] x, float8[] coef, float8[] vcov, float8[] basis_indices, float8[] derivative_matrix, float8[] categorical_indices, float8[] x_set, float8[] x_unset)</td></tr> |
| <tr class="separator:af82b77209159da1b8bc75b39cc8abd98"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a153bcc3884fa16399fa608442259d32d"><td class="memItemLeft" align="right" valign="top">float8[] </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a153bcc3884fa16399fa608442259d32d">__margins_coxph_int_merge</a> (float8[] state1, float8[] state2)</td></tr> |
| <tr class="separator:a153bcc3884fa16399fa608442259d32d"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a3d8c5567fd111b9d10b49d61006f35bf"><td class="memItemLeft" align="right" valign="top">margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a3d8c5567fd111b9d10b49d61006f35bf">__margins_coxph_int_final</a> (float8[] state)</td></tr> |
| <tr class="separator:a3d8c5567fd111b9d10b49d61006f35bf"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a5f270ce35e107912d5ea4e9efd075318"><td class="memItemLeft" align="right" valign="top">margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a5f270ce35e107912d5ea4e9efd075318">__margins_compute_stats</a> (float8[] marginal_effects, float8[] std_err)</td></tr> |
| <tr class="separator:a5f270ce35e107912d5ea4e9efd075318"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:aa44a5bf9ba69ba5e87ebf1f5f4a297db"><td class="memItemLeft" align="right" valign="top">aggregate margins_result </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#aa44a5bf9ba69ba5e87ebf1f5f4a297db">__margins_int_coxph_agg</a> (float8[] independentVariables, float8[] coef, float8[] vcov, float8[] basis_indices, float8[] derivative_matrix, float8[] categorical_indices, float8[] x_set, float8[] x_unset)</td></tr> |
| <tr class="memdesc:aa44a5bf9ba69ba5e87ebf1f5f4a297db"><td class="mdescLeft"> </td><td class="mdescRight">Compute marginal effects for multinomial logistic regression. <a href="#aa44a5bf9ba69ba5e87ebf1f5f4a297db">More...</a><br /></td></tr> |
| <tr class="separator:aa44a5bf9ba69ba5e87ebf1f5f4a297db"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a36fcae5245ca31517723fce38b183c90"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a36fcae5245ca31517723fce38b183c90">margins</a> (varchar model_table, varchar out_table, varchar x_design, varchar source_table, varchar marginal_vars)</td></tr> |
| <tr class="memdesc:a36fcae5245ca31517723fce38b183c90"><td class="mdescLeft"> </td><td class="mdescRight">Marginal effects with default variable_names. <a href="#a36fcae5245ca31517723fce38b183c90">More...</a><br /></td></tr> |
| <tr class="separator:a36fcae5245ca31517723fce38b183c90"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a632bc9f9bf73c40fe6bf3b1778eee91a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a632bc9f9bf73c40fe6bf3b1778eee91a">margins</a> (varchar model_table, varchar out_table, varchar x_design, varchar source_table)</td></tr> |
| <tr class="separator:a632bc9f9bf73c40fe6bf3b1778eee91a"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a6d002a5934d6bc614925ffcf67f24a99"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a6d002a5934d6bc614925ffcf67f24a99">margins</a> (varchar model_table, varchar out_table, varchar x_design)</td></tr> |
| <tr class="separator:a6d002a5934d6bc614925ffcf67f24a99"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:abd29ce2c3931dfbe5fc7e882114b8c68"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#abd29ce2c3931dfbe5fc7e882114b8c68">margins</a> (varchar model_table, varchar out_table)</td></tr> |
| <tr class="separator:abd29ce2c3931dfbe5fc7e882114b8c68"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a14c96eee91746c4693d1775ff3ee8158"><td class="memItemLeft" align="right" valign="top">varchar </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a14c96eee91746c4693d1775ff3ee8158">margins</a> (varchar message)</td></tr> |
| <tr class="separator:a14c96eee91746c4693d1775ff3ee8158"><td class="memSeparator" colspan="2"> </td></tr> |
| <tr class="memitem:a9c7042e5a4dca342e745c89f72f4a650"><td class="memItemLeft" align="right" valign="top">varchar </td><td class="memItemRight" valign="bottom"><a class="el" href="marginal_8sql__in.html#a9c7042e5a4dca342e745c89f72f4a650">margins</a> ()</td></tr> |
| <tr class="separator:a9c7042e5a4dca342e745c89f72f4a650"><td class="memSeparator" colspan="2"> </td></tr> |
| </table> |
| <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| <div class="textblock"><dl class="section date"><dt>Date</dt><dd>January 2011</dd></dl> |
| <dl class="section see"><dt>See also</dt><dd>Calculates marginal effects for various regression models. </dd></dl> |
| </div><h2 class="groupheader">Function Documentation</h2> |
| <a class="anchor" id="a5f270ce35e107912d5ea4e9efd075318"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">margins_result __margins_compute_stats </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>marginal_effects</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>std_err</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a3d8c5567fd111b9d10b49d61006f35bf"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">margins_result __margins_coxph_int_final </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a153bcc3884fa16399fa608442259d32d"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __margins_coxph_int_merge </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state1</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state2</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="af82b77209159da1b8bc75b39cc8abd98"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __margins_coxph_int_transition </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>vcov</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>basis_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>derivative_matrix</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>categorical_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_set</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_unset</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aa44a5bf9ba69ba5e87ebf1f5f4a297db"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">aggregate margins_result __margins_int_coxph_agg </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>independentVariables</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>vcov</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>basis_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>derivative_matrix</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>categorical_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_set</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_unset</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">dependentVariable</td><td>Column containing the dependent variable </td></tr> |
| <tr><td class="paramname">independentVariables</td><td>Column containing the array of independent variables </td></tr> |
| <tr><td class="paramname">coef</td><td>Column containing the array of the coefficients (as obtained by logregr)</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section return"><dt>Returns</dt><dd>A composite value:<ul> |
| <li><code>margins FLOAT8[] </code> - Array of marginal effects</li> |
| <li><code>std_err FLOAT8[]</code> - Array of standard-errors (calculated by the delta method),</li> |
| <li><code>z_stats FLOAT8[]</code> - Array of z-statistics</li> |
| <li><code>p_values FLOAT8[]</code> - Array of p-values</li> |
| </ul> |
| </dd></dl> |
| <dl class="section user"><dt>Usage</dt><dd><ul> |
| <li>Get all the diagnostic statistics:<br /> |
| </li> |
| </ul> |
| </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a228e94d07a25adef545e7f1948648b68"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">aggregate margins_result __margins_int_linregr_agg </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>independentVariables</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>vcov</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>derivative_matrix</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">independentVariables</td><td>Column containing the array of independent variables </td></tr> |
| <tr><td class="paramname">coef</td><td>Column containing the array of the coefficients (as obtained by logregr)</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section return"><dt>Returns</dt><dd>A composite value:<ul> |
| <li><code>margins FLOAT8[] </code> - Array of marginal effects</li> |
| <li><code>std_err FLOAT8[]</code> - Array of standard-errors (calculated by the delta method),</li> |
| <li><code>z_stats FLOAT8[]</code> - Array of z-statistics</li> |
| <li><code>p_values FLOAT8[]</code> - Array of p-values * </li> |
| </ul> |
| </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aa419eeb4ee78982d5ce8e3fe102f28c3"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">aggregate margins_result __margins_int_logregr_agg </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>independentVariables</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>vcov</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>basis_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>derivative_matrix</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>categorical_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_set</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_unset</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">dependentVariable</td><td>Column containing the dependent variable </td></tr> |
| <tr><td class="paramname">independentVariables</td><td>Column containing the array of independent variables </td></tr> |
| <tr><td class="paramname">coef</td><td>Column containing the array of the coefficients (as obtained by logregr)</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section return"><dt>Returns</dt><dd>A composite value:<ul> |
| <li><code>margins FLOAT8[] </code> - Array of marginal effects</li> |
| <li><code>std_err FLOAT8[]</code> - Array of standard-errors (calculated by the delta method),</li> |
| <li><code>z_stats FLOAT8[]</code> - Array of z-statistics</li> |
| <li><code>p_values FLOAT8[]</code> - Array of p-values</li> |
| </ul> |
| </dd></dl> |
| <dl class="section user"><dt>Usage</dt><dd><ul> |
| <li>Get all the diagnostic statistics:<br /> |
| </li> |
| </ul> |
| </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a56aec1f2d980a739df09e09ca52b34f4"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">aggregate margins_result __margins_int_mlogregr_agg </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>independentVariables</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>vcov</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>basis_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>derivative_matrix</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>categorical_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_set</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_unset</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">dependentVariable</td><td>Column containing the dependent variable </td></tr> |
| <tr><td class="paramname">independentVariables</td><td>Column containing the array of independent variables </td></tr> |
| <tr><td class="paramname">coef</td><td>Column containing the array of the coefficients (as obtained by logregr)</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section return"><dt>Returns</dt><dd>A composite value:<ul> |
| <li><code>margins FLOAT8[] </code> - Array of marginal effects</li> |
| <li><code>std_err FLOAT8[]</code> - Array of standard-errors (calculated by the delta method),</li> |
| <li><code>z_stats FLOAT8[]</code> - Array of z-statistics</li> |
| <li><code>p_values FLOAT8[]</code> - Array of p-values</li> |
| </ul> |
| </dd></dl> |
| <dl class="section user"><dt>Usage</dt><dd><ul> |
| <li>Get all the diagnostic statistics:<br /> |
| </li> |
| </ul> |
| </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a946260ec369f98b5b8d584d3e63fcf80"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">margins_result __margins_linregr_int_final </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a0db48e48baea1ab56841e5b57083d939"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __margins_linregr_int_merge </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state1</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state2</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a6f238f587436d904d2206e7edb795bb1"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __margins_linregr_int_transition </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>vcov</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>derivative</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a7ffb6d8dd35dce6deef315458a4f85cd"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">margins_result __margins_logregr_int_final </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a7899421c84eaf701949c7e430dc3eb15"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __margins_logregr_int_merge </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state1</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state2</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a5aaf126f78c5eb0f4c7eaae3ebb53f13"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __margins_logregr_int_transition </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>vcov</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>basis_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>derivative</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>categorical_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_set</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_unset</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a64e8f06dc5425379065f12eacb95ad05"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">margins_result __margins_mlogregr_int_final </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a8c1e7d827ee07f3f6532cdd12a4e1d29"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __margins_mlogregr_int_merge </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state1</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state2</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ade4ae58316e82c1de75f65f383043532"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __margins_mlogregr_int_transition </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>vcov</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>basis_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>derivative_matrix</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>categorical_indices</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_set</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x_unset</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aa4edc871f05eb57354a82a16f85e0ee7"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] __sub_array </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>value_array</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>index_array</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a3286b644d2d51a8f2874896dc1b5d925"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">aggregate marginal_logregr_result marginal_logregr </td> |
| <td>(</td> |
| <td class="paramtype">boolean </td> |
| <td class="paramname"><em>dependentVariable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>independentVariables</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">dependentVariable</td><td>Column containing the dependent variable </td></tr> |
| <tr><td class="paramname">independentVariables</td><td>Column containing the array of independent variables </td></tr> |
| <tr><td class="paramname">coef</td><td>Column containing the array of the coefficients (as obtained by logregr)</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section user"><dt></dt><dd>To include an intercept in the model, set one coordinate in the <code>independentVariables</code> array to 1.</dd></dl> |
| <dl class="section return"><dt>Returns</dt><dd>A composite value:<ul> |
| <li><code>margins FLOAT8[] </code> - Array of marginal effects</li> |
| <li><code>coefFLOAT8[] </code> - The coefficients for the regression</li> |
| <li><code>std_err FLOAT8[]</code> - Array of standard-errors (calculated by the delta method),</li> |
| <li><code>z_stats FLOAT8[]</code> - Array of z-statistics</li> |
| <li><code>p_values FLOAT8[]</code> - Array of p-values</li> |
| </ul> |
| </dd></dl> |
| <dl class="section user"><dt>Usage</dt><dd><ul> |
| <li>Get all the diagnostic statistics:<br /> |
| <pre> SELECT marginal_logregr(<em>dependentVariable</em>, |
| <em>independentVariables</em>, coef) |
| FROM <em>dataTable</em>; |
| </pre> </li> |
| </ul> |
| </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ac4e06a28a76651de70768457575bb9e0"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">marginal_logregr_result marginal_logregr_step_final </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ae44a992f8bd650b5c1f0c2ffae7bb542"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] marginal_logregr_step_merge_states </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state1</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state2</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a2115a795562bc2928c3858fc55104c4b"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] marginal_logregr_step_transition </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">boolean </td> |
| <td class="paramname"><em>y</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>x</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aaf0b3cc34b99d4b47334bdde2d139b81"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">aggregate marginal_mlogregr_result marginal_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>dependentVariable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>num_categories</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>independentVariables</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>coef</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">dependentVariable</td><td>Column containing the dependent variable </td></tr> |
| <tr><td class="paramname">independentVariables</td><td>Column containing the array of independent variables </td></tr> |
| <tr><td class="paramname">num_categories</td><td>Number of categories </td></tr> |
| <tr><td class="paramname">ref_category</td><td>Reference category </td></tr> |
| <tr><td class="paramname">coef</td><td>Column containing the array of the coefficients (as obtained by mlogregr)</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section user"><dt></dt><dd>To include an intercept in the model, set one coordinate in the <code>independentVariables</code> array to 1.</dd></dl> |
| <dl class="section return"><dt>Returns</dt><dd>A composite value:<ul> |
| <li><code>margins FLOAT8[] </code> - Array of marginal effects</li> |
| <li><code>coef FLOAT8[] </code> - The coefficients for the regression</li> |
| <li><code>std_err FLOAT8[]</code> - Array of standard-errors (using the delta method),</li> |
| <li><code>z_stats FLOAT8[]</code> - Array of z-statistics</li> |
| <li><code>p_values FLOAT8[]</code> - Array of p-values</li> |
| </ul> |
| </dd></dl> |
| <dl class="section user"><dt>Usage</dt><dd><ul> |
| <li>Get all the diagnostic statistics:<br /> |
| <pre> SELECT marginal_mlogregr(<em>dependentVariable</em>, |
| <em>independentVariables</em>, coef) |
| FROM <em>dataTable</em>; |
| </pre> </li> |
| </ul> |
| </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a36fcae5245ca31517723fce38b183c90"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>model_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>x_design</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>marginal_vars</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a632bc9f9bf73c40fe6bf3b1778eee91a"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>model_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>x_design</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a6d002a5934d6bc614925ffcf67f24a99"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>model_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>x_design</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="abd29ce2c3931dfbe5fc7e882114b8c68"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>model_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a14c96eee91746c4693d1775ff3ee8158"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar margins </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>message</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a9c7042e5a4dca342e745c89f72f4a650"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar margins </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a9517d679ee4209126895445cbed51fe3"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar margins_logregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>message</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a63aba4148ce9bfcafea81d08e3797a1f"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar margins_logregr </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a99dd17e30e4fcc2f39da4e671406bcea"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_logregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_varname</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_varname</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>max_iter</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>optimizer</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname"><em>tolerance</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">boolean </td> |
| <td class="paramname"><em>verbose_mode</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">source_table</td><td>String identifying the input table </td></tr> |
| <tr><td class="paramname">out_table</td><td>String identifying the output table to be created </td></tr> |
| <tr><td class="paramname">dependent_varname</td><td>Column containing the dependent variable </td></tr> |
| <tr><td class="paramname">independent_varname</td><td>Column containing the array of independent variables </td></tr> |
| <tr><td class="paramname">grouping_cols</td><td>Set of columns to group by. </td></tr> |
| <tr><td class="paramname">marginal_vars</td><td>Subset of independent variables to calculate marginal effects for. </td></tr> |
| <tr><td class="paramname">max_iter</td><td>Maximum number of iterations </td></tr> |
| <tr><td class="paramname">optimizer</td><td>Optimizer to be used (newton/irls, cg or idg) </td></tr> |
| <tr><td class="paramname">tolerance</td><td>Resiual tolerance </td></tr> |
| <tr><td class="paramname">verbose_mode</td><td>Verbose mode (on/off)</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section user"><dt></dt><dd>To include an intercept in the model, set one coordinate in the <code>independentVariables</code> array to 1.</dd></dl> |
| <dl class="section return"><dt>Returns</dt><dd>void</dd></dl> |
| <dl class="section user"><dt>Usage</dt><dd>For function summary information. Run sql> select margins_logregr('help'); OR sql> select <a class="el" href="marginal_8sql__in.html#a9517d679ee4209126895445cbed51fe3">margins_logregr()</a>; OR sql> select margins_logregr('?'); For function usage information. Run sql> select margins_logregr('usage');<ul> |
| <li>Compute the coefficients, and the get the marginal diagnostic statistics: <pre> |
| select margins_logregr(source_table, out_table, dependentVariable, independentVariables); |
| </pre> </li> |
| </ul> |
| </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a4e0b284b130524ff36b44281fa9e3fb9"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_logregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="af520629d3624d30cdcdbce247d89ac7d"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_logregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ae84af4141c1730d7299210ad5005ffe6"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_logregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a7ad0356ba6d3edec11d4ee6904ff8588"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_logregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>max_iter</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a9a9ff25e0ce2220f14e6514a84e71d8a"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_logregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>max_iter</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>optimizer</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a2018fd008c71953a32057d34de54acfc"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_logregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>max_iter</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>optimizer</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname"><em>tolerance</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ae39ad0e1beca060fd153dba35901a4e7"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>message</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a1e152bdb5c5ac347b5621350a396a33f"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">varchar margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramname"></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="aedeea68ce9db3c1ad1ce90219bb02fa0"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_varname</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_varname</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>optimizer_params</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">boolean </td> |
| <td class="paramname"><em>verbose_mode</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| <dl class="params"><dt>Parameters</dt><dd> |
| <table class="params"> |
| <tr><td class="paramname">source_table</td><td>String identifying the input table </td></tr> |
| <tr><td class="paramname">out_table</td><td>String identifying the output table to be created </td></tr> |
| <tr><td class="paramname">dependent_varname</td><td>Column containing the dependent variable </td></tr> |
| <tr><td class="paramname">independent_varname</td><td>Column containing the array of independent variables </td></tr> |
| <tr><td class="paramname">ref_category</td><td>Reference category for the multinomial logistic regression </td></tr> |
| <tr><td class="paramname">grouping_cols</td><td>Set of columns to group by. </td></tr> |
| <tr><td class="paramname">marginal_vars</td><td>Subset of independent variables to calculate marginal effects for. </td></tr> |
| <tr><td class="paramname">max_iter</td><td>Maximum number of iterations </td></tr> |
| <tr><td class="paramname">optimizer</td><td>Optimizer to be used (newton/irls, cg or idg) </td></tr> |
| <tr><td class="paramname">tolerance</td><td>Resiual tolerance </td></tr> |
| <tr><td class="paramname">verbose_mode</td><td>Verbose mode (on/off)</td></tr> |
| </table> |
| </dd> |
| </dl> |
| <dl class="section user"><dt></dt><dd>To include an intercept in the model, set one coordinate in the <code>independentVariables</code> array to 1.</dd></dl> |
| <dl class="section return"><dt>Returns</dt><dd>void</dd></dl> |
| <dl class="section user"><dt>Usage</dt><dd>For function summary information. Run sql> select margins_mlogregr('help'); OR sql> select <a class="el" href="marginal_8sql__in.html#ae39ad0e1beca060fd153dba35901a4e7">margins_mlogregr()</a>; OR sql> select margins_mlogregr('?'); For function usage information. Run sql> select margins_mlogregr('usage'); </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a2837cc6b3ea201682db76102cace3d0e"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_varname</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_varname</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>optimizer_params</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a79e7c2ad06348e95afea81d4b6c6c9f7"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_varname</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_varname</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>max_iter</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>optimizer</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname"><em>tolerance</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">boolean </td> |
| <td class="paramname"><em>verbose_mode</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a0827f2605803847a34e26f31b24529ca"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>max_iter</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a80368510f0bcf8633b017b82c9744ce7"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>max_iter</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>optimizer</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="afaa380d3b7ce111d6a81b5b0fa7483f3"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>max_iter</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>optimizer</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">float8 </td> |
| <td class="paramname"><em>tolerance</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a90bd35d3bb7a3f94feeeb08f9ead8a55"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="af0ef176b7f0d0c518d3a16182ac6117d"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a7e66918e0fcd02f8492347604474a29a"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a8311df1f591cff8d30ca8df816c0cfca"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">void margins_mlogregr </td> |
| <td>(</td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>source_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>out_table</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>dependent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>independent_variable</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer </td> |
| <td class="paramname"><em>ref_category</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">varchar </td> |
| <td class="paramname"><em>grouping_cols</em>, </td> |
| </tr> |
| <tr> |
| <td class="paramkey"></td> |
| <td></td> |
| <td class="paramtype">integer[] </td> |
| <td class="paramname"><em>marginal_vars</em> </td> |
| </tr> |
| <tr> |
| <td></td> |
| <td>)</td> |
| <td></td><td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ad80d7df29226a2529f9f80607f2a983e"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">marginal_mlogregr_result mlogregr_marginal_step_final </td> |
| <td>(</td> |
| <td class="paramtype">float8[] </td> |
| <td class="paramname"><em>state</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div><div class="memdoc"> |
| |
| </div> |
| </div> |
| <a class="anchor" id="a82ac74fd7aec70b7596bc2b4776742fa"></a> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">float8 [] mlogregr_marginal_step_merge_states </td> |