search for: srs1

Displaying 2 results from an estimated 2 matches for "srs1".

Did you mean: src1
2010 Dec 19
1
package survey
Hi R users, could someone help me to find out which formulas, for standard error calculation, are used in following example: a=data.frame(weights=rep(c(10,1),c(4,1)),fpc=rep(41,5),uk=rep(1,5)) srs<-svydesign(id=~1, weights=~weights, data=a) srs1<-svydesign(id=~1, weights=~weights,fpc=~fpc, data=a) svytotal(~uk,srs) total SE uk 41 9 svytotal(~uk,srs1) total SE uk 41 8.4334 and does anyone know if it is possible to find the codes for functions in survey package? thanks in advance Andrija [[alternative HTML version d...
2018 Jun 01
1
rasterize SpatialPolygon object using a RasterBrick object
...eate a SpatialPolygon object using the example from the function documentation Sr1 = Polygon(10*cbind(c(2,4,4,1,2),10*c(2,3,5,4,2))) Sr2 = Polygon(10*cbind(c(5,4,2,5),10*c(2,3,2,2))) Sr3 = Polygon(10*cbind(c(4,4,5,10,4),c(5,3,2,5,5))) Sr4 = Polygon(10*cbind(c(5,6,6,5,5),c(4,4,3,3,4)), hole = TRUE) Srs1 = Polygons(list(Sr1), "s1") Srs2 = Polygons(list(Sr2), "s2") Srs3 = Polygons(list(Sr3, Sr4), "s3/4") SpP = SpatialPolygons(list(Srs1,Srs2,Srs3), 1:3) plot(b[[1]]) plot(SpP, add = T) # crop clip1 = crop(b, extent(SpP)) # rasterize returns an error, but documentation sa...