search for: illnes

Displaying 2 results from an estimated 2 matches for "illnes".

Did you mean: illness
2007 Aug 04
2
Problems using "lm" in combination with "predict"
Hello everybody, I'm trying to predict a linear regression model but it does not work. My Model: y = Worktime + Vacation + Illnes + Bankholidays My modelmatrix is of dimension 28x4 Then I want to make use of the function predict because there confidence.intervals are include. My idea was: mod <- lm(y~Worktime+Vacation+Illnes+Bankholidays) newdate=data.frame(x=c(324,123,0.9,0.1)) predict(y,newdate) But I always get t...
2007 Aug 07
1
Functions for autoregressive Regressionmodels (Mix between times series and Regression Models) ?
...functions or packages for "autoregressive Regressionmodel" with special summaries?. I'm not meaning the function "ar". Example: I have the data working.time <- rnorm(100) # Y vacation <- rnorm(100) #x1 bank.holidays <- rnorm(100) #x2 illnes <- rnorm(100) #x3 education <- rnorm(100) #x3 Now I want to analyse: Y[t] = phi[1]*Y[t-1] + phi[2]*Y[t-1] + ... + phi[p]Y[t-p] + beta1*vacation_t +beta2*bank.holidays + beta3*illnes + beta4*eductation + u_t- Has anyone an idea? I would be more than gl...