Learn R Programming

spsurvey (version 3.4)

spsurvey-internal: Internal spsurvey Functions

Description

These functions are internal spsurvey functions.

Usage

mdmpts(mdcaty, n.desired)
mdmlin(len, mdcaty, n.desired)
mdmarea(area, mdcaty, n.desired)
cell.wt(cel, xc, yc, dx, dy, pts)
selectpts(rdx, xc, yc, dx, dy, pts)
selectframe(rord, xc, yc, dx, dy, pts)
vecprint(x, n.char=78)
shape2spList(shape, shp.type, ID)
ranho(adr, size)
readDbfFile(fileNamePrefix)
readShapeFile(fileNamePrefix)
readShapeFilePts(fileNamePrefix)
getRecordShapeSizes(fileNamePrefix)
writeDbfFile(fieldNames, fields, fileNamePrefix);
writeShapeFilePoint(xVec, yVec, prjFileNameVec, dbfFieldNames, dbfFields,
   fileNamePrefix)
writeShapeFilePolygon(shapeTypeVal, fileLengthVal, contentLenVec, nPartsVec,
   nPointsVec, partsVec, xVec, yVec, prjFileNameVec, dbfFieldNames, dbfFields,
   fileNamePrefix)
pointInPolygonObj(ptXVec, ptYVec, polyXVec, polyYVec)
numLevels(fileNamePrefix, nsmpVec, shiftGridVec,
   startLevVec, maxLevVec, dsgnmdIDVec, dsgnmdVec)
constructAddr(xcVec, ycVec, dxVec, dyVec, nlevVec)
pickGridCells(samplesize, idxVec)
insideAreaGridCell(fileNamePrefix, dsgnmdIDVec, cellIDsVec, xcsVec, ycsVec,
   dxVal, dyVal)
insideLinearGridCell(fileNamePrefix, dsgnmdIDVec, cellIDsVec, xcsVec, ycsVec,
   dxVal, dyVal)
pointInPolygonFile(fileNamePrefix, xcsVec, ycsVec, dsgnmdIDVec, dsgnmdVec)
pickAreaSamplePoints(fileNamePrefix, shpIDsVec, recordIDsVec, xcVec, ycVec,
   dxVal, dyVal, maxTryVal)
pickLinearSamplePoints(fileNamePrefix, shpIDsVec, recordIDsVec, xcVec, ycVec,
   dxVal, dyVal)
linSample(fileNamePrefix, xcVec, ycVec, dxVec, dyVec, dsgnmdIDVec, dsgnmdVec)
getRecordIDs(areaCumSumVec, sampPosVec, dsgnIDVec)
getShapeBox(fileNamePrefix, dsgnIDVec)
linSampleIRS(fileNamePrefix, lenCumSumVec, sampPosVec, dsgnIDVec, dsgnLenVec,
   dsgnMdmVec)

dframe.check(sites, design, subpop, data.cat, data.cont, data.risk, design.names) input.check(nresp, wgt, sigma, var.sigma, xcoord, ycoord, stratum.ind, stratum, stratum.levels, nstrata, cluster.ind, cluster, cluster.levels, ncluster, wgt1, xcoord1, ycoord1, popsize, pcfactor.ind, pcfsize, N.cluster, stage1size, support, swgt.ind, swgt, swgt1, vartype, conf, cdfval=NULL, pctval=NULL, subpop=NULL) vecprint(x, n.char=78) catvar.prop(z, wgt, x, y, prop, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) catvar.size(z, wgt, x, y, size, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) cdf.nresp(z, val) cdf.prop(z, wgt, val, cluster.ind, cluster, wgt1) cdf.total(z, wgt, val, cluster.ind, cluster, wgt1, popsize) cdf.size.prop(z, wgt, val, cluster.ind, cluster, wgt1, swgt, swgt1) cdf.size.total(z, wgt, val, cluster.ind, cluster, wgt1, popsize, swgt, swgt1) cdfvar.prop(z, wgt, x, y, val, cdfest, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) cdfvar.total(z, wgt, x, y, val, cdfest, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, popsize, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) cdfvar.size.prop(z, wgt, x, y, val, cdfest, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, swgt, swgt1, vartype, warn.ind, warn.df, warn.vec) cdfvar.size.total(z, wgt, x, y, val, cdfest, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, popsize, pcfactor.ind, pcfsize, N.cluster, stage1size, support, swgt, swgt1, vartype, warn.ind, warn.df, warn.vec) simex(z, val, sigma, var.sigma, cluster.ind, cluster) dcdf.prop(g, wgt, cluster.ind, cluster, wgt1) dcdf.total(g, wgt, cluster.ind, cluster, wgt1, popsize) dcdf.size.prop(g, wgt, cluster.ind, cluster, wgt1, swgt, swgt1) dcdf.size.total(g, wgt, cluster.ind, cluster, wgt1, popsize, swgt, swgt1) dcdfvar.prop(g, dg, var.sigma, wgt, x, y, cdfest, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) dcdfvar.total(g, dg, var.sigma, wgt, x, y, cdfest, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, popsize, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) dcdfvar.size.prop(g, dg, var.sigma, wgt, x, y, cdfest, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, swgt, swgt1, vartype, warn.ind, warn.df, warn.vec) dcdfvar.size.total(g, dg, var.sigma, wgt, x, y, cdfest, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, popsize, pcfactor.ind, pcfsize, N.cluster, stage1size, support, swgt, swgt1, vartype, warn.ind, warn.df, warn.vec) isotonic(y, minval, maxval) sorted(x) cdf.test.prop(z, wgt, bounds, cluster.ind, cluster, wgt1) cdf.test.size.prop(z, wgt, bounds, cluster.ind, cluster, wgt1, swgt, swgt1) cdfvar.test(z, wgt, x, y, bounds, phat, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, popsize, pcfactor.ind, pcfsize, N.cluster, stage1size, support, swgt.ind, swgt, swgt1, vartype, warn.ind, warn.df, warn.vec) total.var (z, wgt, x, y, mean.est, var.est, sd.est, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) relrisk.var(response, stressor, response.levels, stressor.levels, wgt, x, y, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) attrisk.var(response, stressor, response.levels, stressor.levels, wgt, x, y, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) changevar.prop(catvar.levels, catvar1, catvar2, wgt, x, y, revisitwgt, prop1, prop2, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) changevar.size(catvar.levels, catvar1, catvar2, wgt, x, y, revisitwgt, size1, size2, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) changevar.mean(z1, z2, wgt, x, y, revisitwgt, mean1, mean2, stratum.ind, stratum.level, cluster.ind, cluster, wgt1, x1, y1, pcfactor.ind, pcfsize, N.cluster, stage1size, support, vartype, warn.ind, warn.df, warn.vec) sbcframe(shapefilename=NULL, spframe=NULL, nrows=5, dxdy=TRUE) sbcsamp(sp.sample, sbc.frame=NULL, dx=NULL, dy=NULL, xc=NULL, yc=NULL) localmean.weight(x, y, prb, nbh=4, vincr=0.00001*abs(mean(y))) localmean.weight2(x, y, prb, nbh) localmean.var(z, weight.lst) localmean.cov(zmat, weight.lst) localmean.df(weight.lst) wnas(data) input.format(x, n.digits=2, miss="NA") warnprnt(warn.df, m=1:nrow(warn.df)) interp.cdf(pctval, cdfest.p, cdf.value) interp.axis(yl.lab, cdfest.l, cdfest.r) selectrecordID(rdx, cellID, recordMeasure, recordID, mdm, id) bin1.wgt(x, wgt=rep(1,length(x)), nbin=50, ab=nicerange(x), support="Continuous") wgt.lim(i, m, mlow=(1-m), mhi=(m-1)) nicerange(x, beta = 0.1)

Arguments

Details

These functions are not to be called by the user.