Unobserved component model (UCM) error message in R (RUCM Package)
<p>I have daily data from past 2 year. I have monthly seasonality. So i want to include 11 dummy variables.</p>

<pre><code>dat&lt;-read.csv("data.csv")
val.ts &lt;- ts(dat$Actual,start=c(2014,1,1),freq=12)
</code></pre>

<p>when i try to run the command</p>

<pre><code>mymod &lt;- ucm(val.ts~dat[,2:12],cycle = TRUE,cycle.period = 12)
</code></pre>

<p>I get error message</p>

<pre><code>Error in `[.data.frame`(data, , as.character(dep.var)) : 
  undefined columns selected
</code></pre>