<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
I am trying to predict expected count for a geographical location
(file name: data_181 - test data) from a another data set (data_65
- work_data) using GGWR poission model. Following R code I used.
But No predicted counts were found in output SDF file. I am new
in GGWR. Help will be appreciated. I attach my data sets here.
Thanks<br>
Zia<br>
<br>
library(spgwr)<br>
data(data_65) # work data set<br>
data(data_181) # test data set<br>
<br>
<font face="Times New Roman, Times, serif">bw <-
ggwr.sel(PopRisk_100TH ~ log10(WAS)*log10(GAS)+
offset(log(population_1000)), coords=cbind(data_65$x, data_65$y),<br>
data=data_65, family=poisson())<br>
</font>coordinates(data.181)<-~x+y<br>
ggwr.181 <- ggwr(PopRisk_100TH ~ log10(WAS)*log10(GAS) +
offset(log(population_1000)), coords=cbind(data.65$x, data.65$y),<br>
data=data.65,family=poisson(),bandwidth=bw,type =
c("response"),fit.points = data.181)<br>
<br>
> ggwr.181$SDF<br>
<br>
<table style="border-collapse: collapse;width:480pt" border="0"
cellpadding="0" cellspacing="0" width="640">
<col style="width:48pt" span="10" width="64"> <tbody>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt;width:48pt" height="20" width="64"><br>
</td>
<td style="width:48pt" width="64">sum.w</td>
<td style="width:48pt" width="64">X.Intercept.</td>
<td style="width:48pt" width="64">log10.wasMean.</td>
<td style="width:48pt" width="64">log10.gasMean.</td>
<td style="width:48pt" width="64">log10.wasMean..log10.gasMean.</td>
<td style="width:48pt" width="64">dispersion</td>
<td style="width:48pt" width="64">response_resids</td>
<td style="width:48pt" width="64">x</td>
<td style="width:48pt" width="64">y</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">1</td>
<td align="right">62.50764</td>
<td align="right">-2.36702</td>
<td align="right">1.45678</td>
<td align="right">-2.42768</td>
<td align="right">5.031622</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2779558</td>
<td align="right">531287.3</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">2</td>
<td align="right">63.20595</td>
<td align="right">-2.36062</td>
<td align="right">1.451657</td>
<td align="right">-2.39074</td>
<td align="right">4.995947</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2767150</td>
<td align="right">575319.5</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">3</td>
<td align="right">62.87379</td>
<td align="right">-2.36683</td>
<td align="right">1.456869</td>
<td align="right">-2.42598</td>
<td align="right">5.026145</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2798559</td>
<td align="right">563289.6</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">4</td>
<td align="right">63.13653</td>
<td align="right">-2.36322</td>
<td align="right">1.453891</td>
<td align="right">-2.4054</td>
<td align="right">5.007724</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2784218</td>
<td align="right">576455.7</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">5</td>
<td align="right">62.55473</td>
<td align="right">-2.36991</td>
<td align="right">1.459364</td>
<td align="right">-2.44354</td>
<td align="right">5.042596</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2807095</td>
<td align="right">546223</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">6</td>
<td align="right">62.85015</td>
<td align="right">-2.36264</td>
<td align="right">1.453169</td>
<td align="right">-2.40282</td>
<td align="right">5.009307</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2762510</td>
<td align="right">547772.6</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">7</td>
<td align="right">62.67004</td>
<td align="right">-2.36523</td>
<td align="right">1.455308</td>
<td align="right">-2.4175</td>
<td align="right">5.022374</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2773146</td>
<td align="right">538941.8</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">8</td>
<td align="right">62.40817</td>
<td align="right">-2.36266</td>
<td align="right">1.452969</td>
<td align="right">-2.40357</td>
<td align="right">5.013347</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2745574</td>
<td align="right">520650.3</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">9</td>
<td align="right">62.02654</td>
<td align="right">-2.36357</td>
<td align="right">1.453601</td>
<td align="right">-2.40908</td>
<td align="right">5.020167</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2739576</td>
<td align="right">502023.7</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">10</td>
<td align="right">63.01464</td>
<td align="right">-2.35797</td>
<td align="right">1.449239</td>
<td align="right">-2.37628</td>
<td align="right">4.9865</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2739005</td>
<td align="right">557044.6</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">11</td>
<td align="right">62.8022</td>
<td align="right">-2.35943</td>
<td align="right">1.450378</td>
<td align="right">-2.38489</td>
<td align="right">4.995307</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2739341</td>
<td align="right">542981.4</td>
</tr>
<tr style="height:15.0pt" height="20">
<td style="height:15.0pt" align="right" height="20">12</td>
<td align="right">62.95506</td>
<td align="right">-2.36003</td>
<td align="right">1.45098</td>
<td align="right">-2.38804</td>
<td align="right">4.996592</td>
<td align="right">1</td>
<td>NA</td>
<td align="right">2749492</td>
<td align="right">553074.4</td>
</tr>
</tbody>
</table>
<br>
<pre class="moz-signature" cols="72">--
---------------------
Zia Ahmed, PhD
Research Associate
Department of Crop and Soil Sciences
1002 Bradfield Hall, Cornell University
Ithaca, NY 14853-4203
t. 607.255.9387
f. 607.255.3207
email <a class="moz-txt-link-abbreviated" href="mailto:zua3@cornell.edu">zua3@cornell.edu</a>
</pre>
</body>
</html>