<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Thank you for your answer.</div>
<div> </div>
<div>I tried to do the transformations before the calculation, but the Problem is still the same. I think the problem lies in the factor.</div>
<div>But in my model I need the factor, because there is no linear influence of the year.</div>
<div> </div>
<div>Is there any solution for this Problem?</div>
<div> </div>
<div>https://www.dropbox.com/s/fbhwsy3sd333ung/Example.zip?dl=0</div>
<div>The zip-file in the link contains a picture of str(Daten90) and str(Daten10) and also my data and R-skript.</div>
<div>Var4 is log(Var2).</div>
<div> </div>
<div>Christoph</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>
<div> </div>
<div> </div>
<div> </div>
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"> </div>
<div>The first step should be to look at<br/>
<br/>
str(Daten90)<br/>
str(Daten10)<br/>
<br/>
and if that doesn't solve the problem, then consider a reproducible<br/>
example, or at the very least posting the results of the above to this<br/>
list.<br/>
<br/>
Sarah<br/>
<br/>
On Fri, Feb 22, 2019 at 7:38 AM <f-c-b@web.de> wrote:<br/>
><br/>
> Dear all,<br/>
><br/>
> 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:<br/>
><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, :<br/>
> All the independent variables should be included in the predictdata.<br/>
><br/>
> 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<br/>
> _______________________________________________<br/>
> R-sig-Geo mailing list<br/>
> R-sig-Geo@r-project.org<br/>
> <a href="https://stat.ethz.ch/mailman/listinfo/r-sig-geo" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-geo</a><br/>
<br/>
<br/>
<br/>
--<br/>
Sarah Goslee (she/her)<br/>
<a href="http://www.numberwright.com" target="_blank">http://www.numberwright.com</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>