pboesu / ewp Goto Github PK
View Code? Open in Web Editor NEWEWP regression models for underdispersed count data
License: Other
EWP regression models for underdispersed count data
License: Other
When trying to scale a variable e.g. scale(min_first_egg) within a model, I get "Error in scale(min_first_egg): object 'min_first_egg' not found.
This didn't happen previously and doesn't happen with the same code in a GLM.
fit_min <- ewp_reg(max_num_eggs ~ scale(min_first_egg, scale = F), data = wilwa_trial)
summary(fit_min)
Model3_min<-glm(max_num_eggs~scale(min_first_egg, scale = F), family = quasipoisson, data = wilwa_trial)
summary(Model3_min)
The data are the same that I sent previously.
Set lower limit to estimated parscale avoid division by (near) zero.
Line 25 in 3f92d66
The PMF calculation requires evaluation of an infinite sum of weights, which is currently approximate using a hard coded upper limit for the sum. ewp_reg
currently issues a warning when that limit is approached, but lower level functions do not currently handle this defensively.
Ideally all relevant functions should adapt the summation limit conditional on lambda and beta2, with warnings issued for counts above some lambda to point out the increasing computational effort as the summation limit increases.
Full error message:
Error in fetch(key) :
lazy-load database 'C:/Users/jerem/Dropbox/PC/Documents/R/win-library/4.1/ewp/help/ewp.rdb' is corrupt
This occurred whilst trying to run my histogram plotting function using the model outputs from ewp - particularly the null model. Data were wilwa_trial data.
May be related to other error:
Error: Expecting a single value: [extent=10].
3. stop(structure(list(message = "Expecting a single value: [extent=10].",
call = NULL, cppstack = NULL), class = c("Rcpp::not_compatible",
"C++Error", "error", "condition")))
2. dewp3_cpp(seq(1, 10), lambda = model$coefficients[[1]], beta1 = fit_null$coefficients[[2]],
beta2 = fit_null$coefficients[[3]])
Second error has been solved by providing a singular value to x
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.