Have a look at dir(results) to see available results. The API focuses on models and the most frequently used statistical test. Canonically imported using import as smf. This API directly exposes the fromformula class method of models that support the formula API. But when I renamed the text component, the experiment would cut out as soon as I clicked the button. I created a button with a normal text component and a corresponding mouse component. R-squared: 0.144 Method: Least Squares F-statistic: 9.319 Date: Tue, Prob (F-statistic): 0.000199 Time: 18:23:02 Log-Likelihood: -20.357 No. Hi, I’ve been working on the newest version of Psychopy and am having trouble with the mouse click component. Variable: y R-squared: 0.161 Model: OLS Adj. summary ()) OLS Regression Results = Dep. fit () # Inspect the results In : print ( results. dot ( X, beta ) + e # Fit regression model In : results = sm. add_constant ( X ) In : beta = In : e = np. In : import numpy as np In : import statsmodels.api as sm # Generate artificial data (2 regressors + constant) In : nobs = 100 In : X = np. You can also use numpy arrays instead of formulas: Standard Errors assume that the covariance matrix of the errors is correctly specified. Variable: Lottery R-squared: 0.348 Model: OLS Adj.
ols ( 'Lottery ~ Literacy + np.log(Pop1831)', data = dat ). data # Fit regression model (using the natural log of one of the regressors) In : results = smf. : import numpy as np In : import statsmodels.api as sm In : import as smf # Load data In : dat = sm. Raise AssertionError(‘GetDeviceGammaRamp failed’)ĪssertionError: GetDeviceGammaRamp failedĮxception ignored in: 0x000002C4214F6390>įile “C:\Program Files (x86)\PsychoP圓\lib\site-packages\psychopy\visual\window.py”, line 501, in > delįile “C:\Program Files (x86)\PsychoP圓\lib\site-packages\psychopy\visual\window.py”, line 1327, in >close Return getGammaRamp(self.screenID, self.xDisplay)įile “C:\Program Files (x86)\PsychoP圓\lib\site-packages\psychopy\visual\backends\gamma.py”, line >128, in getGammaRamp Self._origGammaRamp = self.getGammaRamp()įile “C:\Program Files (x86)\PsychoP圓\lib\site->packages\psychopy\visual\backends\pygletbackend.py”, line 329, in getGammaRamp Self.backend = backends.getBackend(win=self, *args, **kwargs)įile “C:\Program Files (x86)\PsychoP圓\lib\site-packages\psychopy\visual\backends_ init_.py”, line >32, in getBackendįile “C:\Program Files (x86)\PsychoP圓\lib\site->packages\psychopy\visual\backends\pygletbackend.py”, line 227, in init Any help/ideas is much appreciated.įile “C:\Users\rb17088\Downloads\PsychoP圓 Demos\BART\bart_lastrun.py”, line 63, inįile “C:\Program Files (x86)\PsychoP圓\lib\site-packages\psychopy\visual\window.py”, line 389, in > init I’ve tried reinstalling psychopy, but the same error is produced.
#Psychopy nonetype windows
My computer prompted me for a standard “restart and update” today (it was not major, because I was already using Windows 10), and now none of my psychopy experiments work (including Demos).
#Psychopy nonetype windows 10
I’m using Windows 10 and PsychopyP圓 v3.1.2.