blob: 99c0f5332a6053787de1ef264cdfc1fbe88c01b9 [file] [log] [blame]
<!-- 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: clustered_variance_coxph.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('clustered__variance__coxph_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">clustered_variance_coxph.sql_in File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>SQL functions for clustered robust cox proportional hazards 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:a91f46572f245f34c9fe92d0ec806a998"><td class="memItemLeft" align="right" valign="top">varchar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#a91f46572f245f34c9fe92d0ec806a998">clustered_variance_coxph</a> ()</td></tr>
<tr class="separator:a91f46572f245f34c9fe92d0ec806a998"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e6c0f27cb3ba9ad583055c96c847795"><td class="memItemLeft" align="right" valign="top">varchar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#a9e6c0f27cb3ba9ad583055c96c847795">clustered_variance_coxph</a> (varchar message)</td></tr>
<tr class="separator:a9e6c0f27cb3ba9ad583055c96c847795"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc0a2119671931eea54e021a4db6168c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#acc0a2119671931eea54e021a4db6168c">clustered_variance_coxph</a> (text model_table, text output_table, text clustervar)</td></tr>
<tr class="separator:acc0a2119671931eea54e021a4db6168c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7081022015c00a14ecca27e017a4458b"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#a7081022015c00a14ecca27e017a4458b">coxph_a_b_transition</a> (float8[], integer, boolean, float8[], float8)</td></tr>
<tr class="separator:a7081022015c00a14ecca27e017a4458b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62bff141ced5972df28ceecdfe522888"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#a62bff141ced5972df28ceecdfe522888">coxph_a_b_merge</a> (float8[], float8[])</td></tr>
<tr class="separator:a62bff141ced5972df28ceecdfe522888"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2373d116ad1e2b2090f8c23a0c15edb5"><td class="memItemLeft" align="right" valign="top">__coxph_a_b_result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#a2373d116ad1e2b2090f8c23a0c15edb5">coxph_a_b_final</a> (float8[])</td></tr>
<tr class="separator:a2373d116ad1e2b2090f8c23a0c15edb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f5ca89e3265e170c325125e61ef191d"><td class="memItemLeft" align="right" valign="top">aggregate __coxph_a_b_result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#a5f5ca89e3265e170c325125e61ef191d">coxph_a_b</a> (integer, boolean, float8[], float8)</td></tr>
<tr class="separator:a5f5ca89e3265e170c325125e61ef191d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a523e61b6d56c8ff59fa8ae3121073a49"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#a523e61b6d56c8ff59fa8ae3121073a49">coxph_compute_w</a> (float8[] x, boolean status, float8[] coef, float8[] h, float8 s, float8 a, float8[] b)</td></tr>
<tr class="separator:a523e61b6d56c8ff59fa8ae3121073a49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a713f413fc571244b7cec6c0084a61eb9"><td class="memItemLeft" align="right" valign="top">__coxph_cl_var_result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#a713f413fc571244b7cec6c0084a61eb9">coxph_compute_clustered_stats</a> (float8[] coef, float8[] hessian, float8[] a)</td></tr>
<tr class="separator:a713f413fc571244b7cec6c0084a61eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abaeae5d6cd30db4b06a49d24d714812e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="clustered__variance__coxph_8sql__in.html#abaeae5d6cd30db4b06a49d24d714812e">robust_variance_coxph</a> (varchar model_table, varchar output_table, varchar clustervar)</td></tr>
<tr class="separator:abaeae5d6cd30db4b06a49d24d714812e"><td class="memSeparator" colspan="2">&#160;</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>Oct 2013</dd></dl>
<dl class="section see"><dt>See also</dt><dd>For a brief introduction to clustered robust cox regression, see the module description <a class="el" href="group__grp__clustered__errors.html">Clustered Variance</a> </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a91f46572f245f34c9fe92d0ec806a998"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">varchar clustered_variance_coxph </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a9e6c0f27cb3ba9ad583055c96c847795"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">varchar clustered_variance_coxph </td>
<td>(</td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>message</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="acc0a2119671931eea54e021a4db6168c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void clustered_variance_coxph </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>model_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>clustervar</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a5f5ca89e3265e170c325125e61ef191d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">aggregate __coxph_a_b_result coxph_a_b </td>
<td>(</td>
<td class="paramtype">integer&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a2373d116ad1e2b2090f8c23a0c15edb5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">__coxph_a_b_result coxph_a_b_final </td>
<td>(</td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[]</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a62bff141ced5972df28ceecdfe522888"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] coxph_a_b_merge </td>
<td>(</td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[]&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a7081022015c00a14ecca27e017a4458b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] coxph_a_b_transition </td>
<td>(</td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a713f413fc571244b7cec6c0084a61eb9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">__coxph_cl_var_result coxph_compute_clustered_stats </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>coef</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>hessian</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>a</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a523e61b6d56c8ff59fa8ae3121073a49"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] coxph_compute_w </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>status</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>coef</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>h</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>b</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="abaeae5d6cd30db4b06a49d24d714812e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void robust_variance_coxph </td>
<td>(</td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>model_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">varchar&#160;</td>
<td class="paramname"><em>clustervar</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_efbcf68973d247bbf15f9eecae7f24e3.html">ports</a></li><li class="navelem"><a class="el" href="dir_a4a48839224ef8488facbffa8a397967.html">postgres</a></li><li class="navelem"><a class="el" href="dir_dc596537ad427a4d866006d1a3e1fe29.html">modules</a></li><li class="navelem"><a class="el" href="dir_505cd743a8a717435eca324f49291a46.html">stats</a></li><li class="navelem"><a class="el" href="clustered__variance__coxph_8sql__in.html">clustered_variance_coxph.sql_in</a></li>
<li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
</div>
</body>
</html>