Package: fitPS 1.0.2

fitPS: Fit Zeta Distributions to Forensic Data

Fits Zeta distributions (discrete power laws) to data that arises from forensic surveys of clothing on the presence of glass and paint in various populations. The general method is described to some extent in Coulson, S.A., Buckleton, J.S., Gummer, A.B., and Triggs, C.M. (2001) <doi:10.1016/S1355-0306(01)71847-3>, although the implementation differs.

Authors:James Curran [aut, cre]

fitPS_1.0.2.tar.gz
fitPS_1.0.2.zip(r-4.5)fitPS_1.0.2.zip(r-4.4)fitPS_1.0.2.zip(r-4.3)
fitPS_1.0.2.tgz(r-4.4-any)fitPS_1.0.2.tgz(r-4.3-any)
fitPS_1.0.2.tar.gz(r-4.5-noble)fitPS_1.0.2.tar.gz(r-4.4-noble)
fitPS_1.0.2.tgz(r-4.4-emscripten)fitPS_1.0.2.tgz(r-4.3-emscripten)
fitPS.pdf |fitPS.html
fitPS/json (API)

# Install 'fitPS' in R:
install.packages('fitPS', repos = c('https://jmcurran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jmcurran/fitps/issues

Datasets:
  • Psurveys - Number of Groups of Glass Data
  • Ssurveys - Size of Groups of Glass Data

On CRAN:

20 exports 1.03 score 93 dependencies 5 scripts 343 downloads

Last updated 6 months agofrom:c074250d30. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 01 2024
R-4.5-winOKSep 01 2024
R-4.5-linuxOKSep 01 2024
R-4.4-winOKSep 01 2024
R-4.4-macOKSep 01 2024
R-4.3-winOKSep 01 2024
R-4.3-macOKSep 01 2024

Exports:addbootCIcompareSurveyscompareSurveysLRTcreatePSDatafitDistfitlogdistfitlogDistfitLogdistfitzidistfitZIdistfitZIDistmakeDatamakePSDataprobfunreadDatarzetarzizetarZIzetavar

Dependencies:backportsbase64encbslibcachemcellrangercheckmatecliclustercodetoolscolorspacecpp11crayondata.tabledigestdoParalleldplyrevaluatefansifarverfastmapFNNfontawesomeforeachforeignFormulafsgenericsggplot2gluegridExtragtablehighrHmischmshtmlTablehtmltoolshtmlwidgetsisobanditeratorsjquerylibjsonlitekernlabKernSmoothknitrkslabelinglatticelifecyclemagrittrMASSMatrixmclustmemoisemgcvmimemulticoolmunsellmvtnormnlmennetpbapplypillarpkgconfigpracmaprettyunitsprogressR6rappdirsrbibutilsRColorBrewerRcppRdpackreadxlrematchrlangrmarkdownrpartrstudioapisassscalesstringistringrtibbletidyselecttinytexutf8vctrsVGAMviridisviridisLitewithrxfunyaml

Examples

Rendered fromexamples.Rnwusingknitr::knitron Sep 01 2024.

Last update: 2024-04-04
Started: 2024-01-05

Using fitPS to fit number of groups data

Rendered fromsimple_P_fit.Rnwusingknitr::knitron Sep 01 2024.

Last update: 2024-01-08
Started: 2023-12-21

Readme and manuals

Help Manual

Help pageTopics
S3 method for objects of class 'psData'==.psData
Add data to a psData objectadd
Converts an object of class 'psData' to a 'data.frame'as.data.frame.psData
Bootstrap confidence intervals or regionsbootCI bootCI.default bootCI.psData bootCI.psFit
Compare two surveys on the basis of their shape parameterscomp.survs compare.surveys compareSurveys compareSurveys.default compareSurveys.psData compareSurveys.psFit
Compare two or more surveys on the basis of their shape parameters using a Likelihood Ratio TestcompareSurveysLRT
S3 confint method for objects of class psFitconfint.psFit
Fit a Zeta Distribution to Forensic DatafitDist fitdist
S3 fitted method for an object of class 'psFit'fitted.psFit
Fit a Zero-Inflated Zeta Distribution to Forensic DatafitZIDist fitZIdist fitzidist
Create a survey data set manuallycreatePSData makeData makePSData
An S3 method for computing the mean of clothing survey for the number of groups or size of groupsmean.psData
S3 plot method for an object of class 'psFit'plot.psFit
S3 predict method for an object of class 'psFit'predict.psFit
S3 print method for an object of class 'psData'print.psData
S3 print method for an object of class 'psFit'print.psFit
Probability Functionsprobfun
Number of Groups of Glass DataPsurveys
Read count data from filereadData
Generate random variates from a zeta distributionrzeta
Generate zero inflated zeta random variatesrZIzeta rzizeta
Size of Groups of Glass DataSsurveys
S3 summary method for an object of class 'psFit'summary.psFit
Variance genericvar
An S3 method for computing the variance of clothing survey for the number of groups or size of groupsvar.psData