title: Test in R for checking if the trend is stochastic or deterministic
body: <p>I'm working at time series model and I have problem to understand which times series is stationary with <strong>deterministic</strong> trend and which with <strong>stochastic</strong> trend. I used <code>adf.test</code>, <code>kpss.test</code>, <code>Box.test</code>, <code>PP.test</code> but they test only stationarity, not deterministic/stochastic things. I'm looking for test/function  in R that gives answer if the trend is stochastic or deterministic :)</p>
  <p>I was thinking about <code>kpss.test</code>, but I don't know how to interpret the results.</p>
  <blockquote>
  <p><strong>Description</strong> Computes the Kwiatkowski-Phillips-Schmidt-Shin (KPSS) test for the null hypothesis that x is level or trend stationary.</p>
  <p><strong>Usage</strong></p>
  <pre><code>kpss.test(x, null = c(&quot;Level&quot;, &quot;Trend&quot;), lshort = TRUE)
  </code></pre>
  <p><strong>Arguments</strong></p>
  <p>x a numeric vector or univariate time series.</p>
  <p>null indicates the null hypothesis and must be one of &quot;Level&quot; (default) or &quot;Trend&quot;.
  You can specify just the initial letter.</p>
  <p>lshort a logical indicating whether the short or long version of the truncation lag parameter
  is used.</p>
  </blockquote>
  <p>Thanks!</p>