title: pmlr with only the intercept
body: <p>I am trying to perform a penalized multinomial logistic regression with R. I use the <code>pmlr</code> package, which is quite nice. Unfortunately, this code does not estimate pseudo R2. To estimate it on my own I need to perform a "only intercept" model with <code>plmr</code>. I have used the following command to do this:</p>
  
  <pre><code>Res &lt;- pmlr(y~1, data=x, weights=NULL, 
        alpha=0.05, penalized = TRUE, 
        method = c("likelihood","wald")[1], joint=FALSE)
  </code></pre>
  
  <p>with function <code>y~1</code> only the intercept should be incorporated, right? 
  Unfortunately, I receive the following error message: </p>
  
  <blockquote>
    <p>error in 1:m : argument of length 0"</p>
  </blockquote>
  
  <p>Could someone please tell me how I am able to perform the regression analysis only with the intercept? Thanks in advance!!!</p>
  
  <p>Kind regrads
  S Mau</p>