Recent content by gianmarco

  1. gianmarco

    Question about chi-square test and single columns

    I do not understand why you want to do that? Do you know in which context chi-sq test is used and which question it actually aims to address?
  2. gianmarco

    testing the association between points and any of the points belonging to another set of point: am I approaching it correctly?

    I come up with the approach on the basis of O'Sallivan-Unwin, "Geographic Information Analysis", 2010, p. 104, who say: Now, my main issue is whether I am right in thinking that, while for equal-sized polygons (quadrats) p=1/x, for unequal-sized polygons p=size of each quadrat relative to the...
  3. gianmarco

    testing the association between points and any of the points belonging to another set of point: am I approaching it correctly?

    Hello, I am trying to put togheter an R function to test if points in a given area tend to occur closer to any point belonging to another set of point, or if they are distributed irrepsective of the distance from the latter. I would like to have some feedback on the method I applied, especially...
  4. gianmarco

    function trows an error at first, but runs smoothly after being copy/pasted

    I think I solved the issue. It seems it was indeed a conflict between packages and related functions. My workaround has been: 1) to make R load first some packages whose functions are used in my function; 2) within my function, specifying the package to which each used function belongs (using...
  5. gianmarco

    function trows an error at first, but runs smoothly after being copy/pasted

    yes, yes, I see. No, it is not on GitHub; I came across the error after adding 2 new functions....
  6. gianmarco

    function trows an error at first, but runs smoothly after being copy/pasted

    Any suggestion on how can I produce that, considering that that would entail making the package available to others here? In other words, how can I share the package here without putting it on GitHub first? You know, my knowledge on those topics is not extensive :-(
  7. gianmarco

    making R computing large factorials

    Thanks Greta. For the time being, I would like to stick with Dason's suggestion and using the pbinom(). So, given the parameters I have cited in the quotation in one of my earlier posts, is the way I am plugging the parameters in correct? pbinom(observed number of points within polygons...
  8. gianmarco

    making R computing large factorials

    @GretaGarbo: just trying to reproduce in R the points-in-polygons test to which I was referring in my first post. See the quoted text and the attached image.
  9. gianmarco

    making R computing large factorials

    Greta, I think I need the cumulative distribution; note what follows (copied from my earlier thread, emphasis mine): So, if I have x events (points), at the best of my (limited) understanding I need the cumulative prob for events from 1 to x.
  10. gianmarco

    function trows an error at first, but runs smoothly after being copy/pasted

    I am building a new version of a package of mine, and I came across a strange behavior of a function. This poped up after I made some change to the code. If I install the package (using, as usual, library(GmAMisc)) and run a function, an error is returned: If I visualize the code, copy and...
  11. gianmarco

    making R computing large factorials

    Thank you for the hint, it looks way simpler! May I ask you to give me some help in adapting that function to to my context? I have made some web search after your suggestion, and I realized that perhaps pbinom() should be used. Now, what I am trying to implement is what follows, which is after...
  12. gianmarco

    making R computing large factorials

    Thank you for the suggestion. It worked.
  13. gianmarco

    making R computing large factorials

    I am writing a function in R to test whether a set of points falls inside a set of polygons more often than would be expected by chance. The calculation of p value entails using factorials: p.x <-...
  14. gianmarco

    issue in installing my own R package (possible problem with one of its dependencies)

    Ok, I found the solution. It seems that the developers of 'RcmdrMisc' fixed the issue in a recently released update of their package. best gm
  15. gianmarco

    issue in installing my own R package (possible problem with one of its dependencies)

    Hello, I have just found out that I cannot install my R package, which sits on GiHub. library(devtools) install_github("gianmarcoalberti/CAinterprTools@v0.17") When I try to install it, at first it seems that all is ok, and the various dependencies are loaded; then the procedure gets stuck and...