search for: modeltest

Displaying 6 results from an estimated 6 matches for "modeltest".

2006 Sep 11
3
Extracting overdispersion estimates from lmer amd glm objects
...e models as well as calculate qausi-AIC values. I have been unable to do this, despite consulting a number of manuals and searching the R-help. I am imaging that in theory it should be possible with some call to attr(), but i have so far had no success. An example model output would be: > modeltest<-lmer(Coleodactylus_amazonicus_N~USD + (1|site),data=SFArray,family=poisson,method="Laplace",control=list(usePQL=FALSE, msVerbose=TRUE)) > summary(modeltest) ------------ Generalized linear mixed model fit using Laplace Formula: Coleodactylus_amazonicus_N ~ USD + (1 | site) D...
2011 Oct 21
0
nls making R "not responding"
Here is the code I am running: library(nls2) modeltest<- function(A,mu,l,b,thour){ out<-vector(length=length(thour)) for (i in 1:length(thour)) { out[i]<-b+A/(1+exp(4*mu/A*(l-thour[i])+2)) } return(out) } A=1.3 mu=.22 l = 15 b = .07 thour = 1:25 Yvals<-modeltest(A,mu,l,b,thour)-.125+runif(25)/4 st2 <- expand.grid(A = seq(0.1, 1.6,.5),...
2005 Dec 21
0
Help with Krige.conv using linear models
...predict values in a grid. But?one set of my data appears to be linearly correlated for the first 5000 meters and not correlated beyond that. I have been having problems using krige.conv() to get a decent kriged map using the linear model. The code I am using from my data is as follows: >modeltest=variofit(variotest, weights=?cressie?, cov.model=?linear?, ini.cov.pars=c(80,1)) The output parameters are tausq = 9.855, sigmasq = 0.0087, phi=1.0 >krig=krige.conv(data, krige=krige.control(type.krig=?ok?, obj.model=modeltest), locations=pred.grid) At this point, krig$predict values have...
2011 Oct 15
0
shoulda installation troubles
...have shoulda working. I''m using rvm with rails 3.1 and ruby 1.9.2 I added group :test do gem "shoulda" end to the Gemfile, and then run bundle install, thus the gem is installed, and it is featured in the list running gem list --local. but whenever I add something like class ModelTest < Test::Unit::TestCase should_not allow_value("blah").for(:email) end in a testfile, running that test with ruby -Itest test/unit/model_test.rb I get an error undefined method `allow_value'' for ModelTest:Class Am I missing something? should I manually require shoulda? where...
2010 Feb 11
1
[PATCH] Provides a reference implementation management server.
...anklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +"""Unit test suite for the models of the application.""" +from nose.tools import assert_equals + +from ovirtserver.model import DBSession +from ovirtserver.tests import setup_db, teardown_db + +__all__ = ['ModelTest'] + +#Create an empty database before we start our tests for this module +def setup(): + """Function called by nose on module load""" + setup_db() + +#Teardown that database +def teardown(): + """Function called by nose after all tests in th...
2010 Feb 17
0
[PATCH] Provides the new node lifecycle events.
...anklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -"""Unit test suite for the models of the application.""" -from nose.tools import assert_equals - -from ovirtserver.model import DBSession -from ovirtserver.tests import setup_db, teardown_db - -__all__ = ['ModelTest'] - -#Create an empty database before we start our tests for this module -def setup(): - """Function called by nose on module load""" - setup_db() - -#Teardown that database -def teardown(): - """Function called by nose after all tests in th...