Comments (2)
Hi @pepbioalerts - sorry for the slow response! A reprex would be helpful, as I can't tell just from looking at this what the issue might be.
from spind.
@levisc8 @pepbioalerts - Hi Sam and pepbioalerts, I also encountered the same error when I ran spind GEE function. I specified "corstr" as "fixed". After checking the corresponding source code shown as the following:
if(corstr == "fixed"){
ac01 <- acfft(coord, res0, 1, 1.1, dmax = 1)
ac05 <- acfft(coord, res0, 5, 5.1, dmax = 1)
if(ac05 <= 0) v <- 1
if(ac05 > 0) v <- log(log(ac05) / log(ac01)) / log(5)
alpha <- ac01
para0 <- paste("n", nn,sep = "=")
para1 <- paste(", alpha", round(alpha, 3), sep = "=")
para2 <- paste(", v", round(v, 3), sep = "=")
A0 <- paste(para0, para1, para2)
id <- rep(1, nn)
coord <- cbind(x, y)
D <- as.matrix(stats::dist(coord))
R <- alpha ^ (D^v)
data <- data.frame(data, id)
suppressMessages(suppressWarnings(utils::capture.output({
mgee <- gee::gee(formula = formula, family = family,
data = data, id = id,R = R,corstr = "fixed",
scale.fix = scale.fix)
})))
...
...
...
}
I found ac01 is negative (-0.6596838), but ac05 is positive (0.3565027) in my case. Therefore, log(ac01) will produce NaNs. Could you please any hint to fix this issue? Thank you.
from spind.
Related Issues (20)
- Add new functions, documentation HOT 3
- s3 method conflict for plot.rvi HOT 1
- Add step.spind HOT 9
- make GC suggested edits HOT 1
- add umlauts to Ingolf's name HOT 1
- finish vignette HOT 3
- Add forward and both to step.spind
- step.spind not recognizing interaction terms in formulae that also include polynomial terms HOT 1
- Create single data set for vignette HOT 1
- ggplot for pretty output figures HOT 1
- argument consistency HOT 1
- Allow user to manually modify graphical outputs HOT 1
- raster and/or sf support?
- Update documentation for model functions HOT 1
- Updates for plotting
- Update vignette to go with new paper
- Sparse matrix support for larger data sets
- Struggling to understand error message = "length of data does not match length of coordinates" HOT 3
- Change to new cran checks badge URL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spind.