Giter VIP home page Giter VIP logo

ewp's People

Contributors

clarkejames944 avatar pboesu avatar

Watchers

 avatar  avatar

ewp's Issues

Scale error

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.

Use adaptive summation limits

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.

EWP.rdp is corrupt

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]])

  1. hist.ewp.null(bullf$max_num_eggs[bullf$year == 1960], fit_null)

Second error has been solved by providing a singular value to x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.