[R] Regressing the residuals on the country dummies
Alemu Tadesse
alemu.tadesse at gmail.com
Thu Aug 18 20:29:53 CEST 2016
Dear All,
I am wondering if someone knows an R equivalent of the following API call
in python.
"-----"
import time
import pandas as pd
start_time = time.clock()
timer =time.clock()
import pkg_resources
pkg_resources.require("pysimplesoap==1.05a")
from pysimplesoap.client import SoapClient
import os
import numpy as np
client = SoapClient(wsdl="
https://solardata.com/service.asmx?wsdl")
result = client.GetCsvWeatherData8(
userName='alex at solardata.com',password='passw at word1
',licenseNumber='X1952c9wv',
latitude=lati, longitude=loni,
startDate='2013-02-10T00:00:00',
endDate='2014-11-28T00:00:00',
dataVersionId=8,
spatialResolutionId='High1km',
timeResolution='Minute',
missingDataHandling='Blank',
WindTemp=1,
timeshift = 'No')
weather ={}
weather['csvWeather']=
result['GetCsvWeatherData8Result']['csvWeather']
Thanks,
Alemu
On Fri, Oct 2, 2015 at 12:31 PM, Linus Holtermann <holtermann at hwwi.org>
wrote:
> Hi,
>
> You have panel data or cross-sectional data? In the case you use
> cross-sectional data and "countries" are your observations (no repeated
> measure of them) and you regress the country-dummies on your residuals of
> the forgone regression, then there are as many regressors as observations.
> Consequently, is it not possible to estimate such a model since there are
> no degrees of freedom left.
>
> Mit freundlichen Grüßen
>
>
> Linus Holtermann
> Hamburgisches WeltWirtschaftsInstitut gemeinnützige GmbH (HWWI)
> Heimhuder Straße 71
> 20148 Hamburg
> Tel +49-(0)40-340576-336
> Fax+49-(0)40-340576-776
> Internet: www.hwwi.org
> Email: holtermann at hwwi.org
>
> Amtsgericht Hamburg HRB 94303
> Geschäftsführer: Prof. Dr. Henning Vöpel
> Prokura: Dipl. Kauffrau Alexis Malchin
> Umsatzsteuer-ID: DE 241849425
>
>
> -----Ursprüngliche Nachricht-----
> Von: R-help [mailto:r-help-bounces at r-project.org] Im Auftrag von Johanna
> von Bahr
> Gesendet: Donnerstag, 1. Oktober 2015 21:15
> An: r-help at r-project.org
> Betreff: [R] Regressing the residuals on the country dummies
>
> I’m trying to estimate a model regressing the residuals on the country
> dummies as follows; model.resC <- lm(model2$res ~ as.factor(Country))
> summary(model.resC)
>
> As I call the model I get the following results regarding the residuals:
>
> "ALL 90 residuals are 0: no residual degrees of freedom!"
>
> What has gone wrong?
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list