<html>
<head>
</head>
<body>
<small>mnoModell <- as.data.frame(mnoModell0)</small><small><br>
</small><small>$ attach(mnoModell)</small><small><br>
</small><small>$ cor(Q31.1,Q41.1,use="pairwise.complete.obs")</small><small><br>
</small><small>[1] 0.0833</small><small><br>
</small><small>$ </small><small><br>
</small><small>$ for( i in length(mnoModell)) {</small><small><br>
</small><small>+ cor(names(mnoModell)[i],Q41.1,use="complete.obs")</small><small><br>
</small><small>+ }</small><small><br>
</small><small>Error in cor(x, y, na.method) : incompatible dimensions
</small><small><br>
</small><small>In addition: Warning message: </small><small><br>
</small><small>NAs introduced by coercion </small><small><br>
</small><small>$ </small><small><br>
</small><small>$ names(mnoModell)[3]</small><small><br>
</small><small>[1] "Q31.3"</small><br>
<br>
Hello ,<br>
(1) What can i do that the loop works ?<br>
Perhaps anything with lapply ?<br>
<br>
(2) Is it correct that is not very useful works with logistic regression<br>
when sample < 100 cases ?<br>
<br>
thanks for advance &<br>
regards, Christian Schulz<br>
</body>
</html>