Package: psc 1.1.0

psc: Personalised Synthetic Controls

Allows the comparison of data cohorts (DC) against a Counter Factual Model (CFM) and measures the difference in terms of an efficacy parameter. Allows the application of Personalised Synthetic Controls.

Authors:Richard Jackson [cre, aut]

psc_1.1.0.tar.gz
psc_1.1.0.zip(r-4.5)psc_1.1.0.zip(r-4.4)psc_1.1.0.zip(r-4.3)
psc_1.1.0.tgz(r-4.5-any)psc_1.1.0.tgz(r-4.4-any)psc_1.1.0.tgz(r-4.3-any)
psc_1.1.0.tar.gz(r-4.5-noble)psc_1.1.0.tar.gz(r-4.4-noble)
psc_1.1.0.tgz(r-4.4-emscripten)psc_1.1.0.tgz(r-4.3-emscripten)
psc.pdf |psc.html
psc/json (API)
NEWS

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

Bug tracker:https://github.com/richjjackson/psc/issues

On CRAN:

Conda:

4.26 score 1 stars 24 scripts 148 downloads 7 exports 109 dependencies

Last updated 1 days agofrom:469621255b. Checks:9 ERROR. Indexed: yes.

TargetResultLatest binary
Doc / VignettesFAILMar 25 2025
R-4.5-winERRORMar 25 2025
R-4.5-macERRORMar 25 2025
R-4.5-linuxERRORMar 25 2025
R-4.4-winERRORMar 25 2025
R-4.4-macERRORMar 25 2025
R-4.4-linuxERRORMar 25 2025
R-4.3-winERRORMar 25 2025
R-4.3-macERRORMar 25 2025

Exports:dataCombdataSummlinPredmodelExtractpscfitpscSummsurv_fpm

Dependencies:abindassertthatbackportsbbmlebdsmatrixBHbootbroomcarcarDataclicolorspacecommonmarkcorrplotcowplotcpp11curldata.tableDerivdeSolvedoBydplyrenrichwithevaluateexactRankTestsfansifarverfastGHQuadflexsurvFormulagenericsggplot2ggpubrggrepelggsciggsignifggtextgluegridExtragridtextgtablehighrisobandjpegkm.ciKMsurvknitrlabelinglatticelifecyclelitedownlme4magrittrmarkdownMASSMatrixMatrixModelsmaxstatmgcvmicrobenchmarkminqamodelrmstatemuhazmunsellmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpngpolynompurrrquadprogquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangrstatixrstpm2scalesSparseMstatmodstringistringrsurvivalsurvminersurvMisctibbletidyrtidyselectutf8vctrsviridisLitewithrxfunxml2xtableyamlzoo

Readme and manuals

Help Manual

Help pageTopics
accacc
Example model for a survival outcomebin.mod
Returns the coefficeint estimate of a psc object.coef.psc
Example model for a survival outcomecont.mod
Example model for a survival outcomecount.mod
Example Dataset of patients with aHCC receiving Lenvetanibdata
A function to ensure that data from the cfm and data cohort are compatibledata_match
A generic function for cleaning data ready for analysisdataComb
Function for cleaning the data of a model with class 'flexsurvreg'dataComb.flexsurvreg
Function for cleaning the data of a model with class 'flexsurvreg'dataComb.glm
A function which provides basic summary information of a matrix xdataSumm
Fucntion for estimating initial parameter values 'flexsurvreg'initParm
Fucntion for estimating initial parameter values 'flexsurvreg'initParm.flexsurvreg
Fucntion for estimating initial parameter values 'flexsurvreg'initParm.glm
Likelihood function for a psc model of class 'flexsurvreg'lik.flexsurvreg
Likelihood function for a psc model of class 'flexsurv' with multiple treatment comparisonslik.flexsurvreg.mtc
Likelihood function for a psc model of class 'glm'lik.glm
Likelihood function for a psc model of class 'glm' with multiple treatment comparisonslik.glm.mtc
Estimates the linear predictor of a psc objectlinPred
A generic function for extracting model informationmodelExtract
A generic function for extracting model informationmodelExtract.flexsurvreg
A generic function for extracting model informationmodelExtract.glm
modpmodp
Function for Plotting PSC objectsplot.psc
Function for Plotting PSC objectsplot.psc.binary
Function for Plotting PSC objectsplot.psc.cont
Function for Plotting PSC objects #' A function which illsutrates the predicted response under the counter factual model and the observed response under the experimental treatment(s).plot.psc.count
Function for Plotting PSC objectsplot.psc.flexsurvreg
Personalised Synthetic Controls - printprint.psc
Fitted 'psc' objectpsc.object
Function for performing estimation procedures in 'pscfit'pscEst
Function for estimating initial parameter values 'flexsurvreg'pscEst.flexsurvreg
Function for estimating initial parameter values 'flexsurvreg'pscEst.glm
Personalised Synthetic Controls model fitpscfit
Personalised Synthetic Controls - summarypscSumm
Personalised Synthetic Controls - summarysummary.psc
A function to obtain survival estimates from a flexible parametric modelsurv_fpm
Example model for a survival outcomesurv.mod