<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear all,<br/>
 </div>

<div>I am currently working out a geographically weighted regression, in which 90% of the data set the model should be calculated and for 10% of the values to be predicted. For the prediction I use the function gwr.predict from the package GWModel:</div>

<div><br/>
 Erg<-gwr.predict(formula=Ziel~ as.factor(Var1) + log(Var2, base = exp(1)) + Var3, data = Daten90,predictdata = Daten10,bw = bwG, kernel = "gaussian",adaptive = FALSE, p = 2, theta = 0, longlat = FALSE)<br/>
<br/>
I always get this error, although Daten10 and Daten90 have the same structure:<br/>
Error in gwr.predict(formula = Ziel~ as.factor(Var1) + log(Var2, base = exp(1)) + Var3, :</div>

<div>All the independent variables should be included in the predictdata.</div>

<div> </div>

<div>Can you tell me what the problem with this code is?<br/>
Or is there any other way for a GWR and the prediction?<br/>
<br/>
Thank you,<br/>
Christoph</div></div></body></html>