<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML - vooraf opgemaakt Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.E-mailStijl17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTML-voorafopgemaaktChar
{mso-style-name:"HTML - vooraf opgemaakt Char";
mso-style-priority:99;
mso-style-link:"HTML - vooraf opgemaakt";
font-family:"Courier New";
mso-fareast-language:NL;}
span.gewyw5ybaeb
{mso-style-name:gewyw5ybaeb;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Dear Angel,<o:p></o:p></span></p>
<pre style="word-break:break-all"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">I read your question on <a href="http://lists.r-forge.r-project.org/">http://lists.r-forge.r-project.org/</a> about the error: <span style="color:#C5060B;background:#E1E2E5">Error in if (xhat == 0) out <- 1 else { : missing value where TRUE/FALSE needed I get the same error when using </span><span style="color:black;background:#E1E2E5"><o:p></o:p></span></span></pre>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I got the same error using the code:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">med.fit<-glm(formula = cluster_two~Tertile_age, data=cluster, family=binomial)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">out.fit<-glm(formula = death ~cluster_two+Tertile_age, data=cluster, family=binomial)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Did you figure out what causes the error.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you in advance!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Laura <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-US" style="mso-fareast-language:NL">Laura Schouten MD | Phd candidate Pediatric Intensive Care | Department of intensive care & Laboratory of Experimental Intensive
Care and Anesthesiology (LEICA) | Room G3-227 Emma Children's Hospital | Academic Medical Center | Meibergdreef 9, 1105 AZ Amsterdam | E:
</span><span style="mso-fareast-language:NL"><a href="mailto:l.r.schouten@amc.nl"><span lang="EN-US" style="color:blue">l.r.schouten@amc.nl</span></a></span><span lang="EN-US" style="mso-fareast-language:NL"> | T: 020 5666342 | m:+31641149755<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<div style="font-size:9pt; font-family: 'Calibri',sans-serif;">
<p style="font-size:8pt; line-height:4pt; font-family: 'Arial','times roman',serif;">
</p>
<hr>
<p style="text-align: center;">AMC Disclaimer : https://www.amc.nl/disclaimer</p>
<hr>
<p style="font-size:8pt; line-height:4pt; font-family: 'Arial','times roman',serif;">
</p>
</div>
</body>
</html>