[R] Kalman Filter with dlm

2011-11-18 Thread Pearl
I have built a Kalman Filter model for flu forecasting as shown below. Y - Target Variable X1 - Predictor1 X2 - Predictor2 While forecasting into the future, I will NOT have data for all three variables. So, I am predicting X1 and X2 using two Kalman filters. The code is below x1.model <- dl

[R] Cross validation for Ordinary Kriging

2011-01-06 Thread pearl may dela cruz
nf, nmin = 0, maxdist = Inf, nfold = nrow(data), verbose = TRUE, ...) I hope you can help me on this. Thanks a lot. Best regards, Pearl [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.

[R] Prediction error for Ordinary Kriging

2011-01-05 Thread pearl may dela cruz
ce) ~ 1, x2, cutoff=100, width=9) te<- fit.variogram(v,vgm(0.0437, "Exp", 26, 0)) y <- krige(tsport_ace~1, x2, x2_SG, model = ve.fit) spplot(y, 1, col.regions = bpy.colors(100), sp.layout = list("sp.lines",as(rsa2, "SpatialLines"),no.clip = TRUE)) I'm

[R] Convert tileplot's trellis to shapefile/ Add values to voronoi polygon

2010-12-16 Thread pearl may dela cruz
In any way, can you help me on either converting tileplot's trellis to shapefile/image or (solving the problem of voronoi polygons and adding another column to represent the polygons in tripack). Thanks a lot in advance, Pearl dela Cruz ___