Skip to content

IDLFM

Individual Dynamic Latent Factor Model

v1.0.0 · May 11, 2025 · MIT + file LICENSE

Description

A personalized dynamic latent factor model (Zhang et al. (2024) <doi:10.1093/biomet/asae015>) for irregular multi-resolution time series data, to interpolate unsampled measurements from low-resolution time series.

Downloads

120

Last 30 days

23116th

120

Last 90 days

120

Last year

CRAN Check Status

2 ERROR
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 ERROR
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (16 non-OK)
ERROR r-devel-linux-x86_64-debian-clang

package dependencies

Package required but not available: ‘SparseArray’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
OK r-oldrel-macos-arm64

*


            
NOTE r-oldrel-macos-x86_64

R code for possible problems

generate_data: possible error in SVT_SparseArray(dim = c(n_patients,
  n_var, time)): unused argument (dim = c(n_patients, n_var, time))
generate_data: possible error in SVT_SparseArray(dim = c(n_patients, 1,
  time)): unused argument (dim = c(n_patients, 1, time))
ERROR r-oldrel-macos-x86_64

examples

Running examples in ‘IDLFM-Ex.R’ failed
The error most likely occurred in:

> ### Name: IDLFM
> ### Title: Individualized Dynamic Latent Factor Model
> ### Aliases: IDLFM
> 
> ### ** Examples
> 
> library(splines)
> #if (!require("BiocManager", quietly = TRUE))
> #install.packages("BiocManager")
> #BiocManager::install("SparseArray")
> library(SparseArray)
Loading required package: Matrix
Loading required package: BiocGenerics

Attaching package: ‘BiocGenerics’

The following objects are masked from ‘package:stats’:

    IQR, mad, sd, var, xtabs

The following objects are masked from ‘package:base’:

    Filter, Find, Map, Position, Reduce, anyDuplicated, aperm, append,
    as.data.frame, basename, cbind, colnames, dirname, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
    pmin.int, rank, rbind, rownames, sapply, setdiff, table, tapply,
    union, unique, unsplit, which.max, which.min

Loading required package: MatrixGenerics
Loading required package: matrixStats

Attaching package: ‘MatrixGenerics’

The following objects are masked from ‘package:matrixStats’:

    colAlls, colAnyNAs, colAnys, colAvgsPerRowSet, colCollapse,
    colCounts, colCummaxs, colCummins, colCumprods, colCumsums,
    colDiffs, colIQRDiffs, colIQRs, colLogSumExps, colMadDiffs,
    colMads, colMaxs, colMeans2, colMedians, colMins, colOrderStats,
    colProds, colQuantiles, colRanges, colRanks, colSdDiffs, colSds,
    colSums2, colTabulates, colVarDiffs, colVars, colWeightedMads,
    colWeightedMeans, colWeightedMedians, colWeightedSds,
    colWeightedVars, rowAlls, rowAnyNAs, rowAnys, rowAvgsPerColSet,
    rowCollapse, rowCounts, rowCummaxs, rowCummins, rowCumprods,
    rowCumsums, rowDiffs, rowIQRDiffs, rowIQRs, rowLogSumExps,
    rowMadDiffs, rowMads, rowMaxs, rowMeans2, rowMedians, rowMins,
    rowOrderStats, rowProds, rowQuantiles, rowRanges, rowRanks,
    rowSdDiffs, rowSds, rowSums2, rowTabulates, rowVarDiffs, rowVars,
    rowWeightedMads, rowWeightedMeans, rowWeightedMedians,
    rowWeightedSds, rowWeightedVars

Loading required package: S4Vectors
Loading required package: stats4

Attaching package: ‘S4Vectors’

The following objects are masked from ‘package:Matrix’:

    expand, unname

The following object is masked from ‘package:utils’:

    findMatches

The following objects are masked from ‘package:base’:

    I, expand.grid, unname

Loading required package: S4Arrays
Loading required package: abind
Loading required package: IRanges

Attaching package: ‘S4Arrays’

The following object is masked from ‘package:abind’:

    abind

The following object is masked from ‘package:base’:

    rowsum

> 
> I <- 3
> J <- 5
> time <- 1000
> R <- 3
> k <- 3
> N <- 300
> idx_x <- randomSparseArray(c(I, J, time), density=0.8)
> idx_y_train <- randomSparseArray(c(I, 1, time), density=0.2)
> idx_y_test <- randomSparseArray(c(I, 1, time), density=0.2)
> data <- generate_data(I, J, time, idx_x, idx_y_train, R, k, N)
Error: unable to find an inherited method for function ‘nzcount’ for signature ‘x = "numeric"’
Execution halted
WARNING r-oldrel-macos-x86_64

whether package can be installed

Found the following significant warnings:
  Note: possible error in 'SVT_SparseArray(dim = c(n_patients, ': unused argument (dim = c(n_patients, n_var, time)) 
  Note: possible error in 'SVT_SparseArray(dim = c(n_patients, ': unused argument (dim = c(n_patients, 1, time)) 
See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.4/IDLFM.Rcheck/00install.out’ for details.
Information on the location(s) of code generating the ‘Note’s can be
obtained by re-running with environment variable R_KEEP_PKG_SOURCE set
to ‘yes’.
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-clang

package dependencies

Package required but not available: ‘SparseArray’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-oldrel-macos-x86_64

whether package can be installed

Found the following significant warnings:
  Note: possible error in 'SVT_SparseArray(dim = c(n_patients, ': unused argument (dim = c(n_patients, n_var, time)) 
  Note: possible error in 'SVT_SparseArray(dim = c(n_patients, ': unused argument (dim = c(n_patients, 1, time)) 
See ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.4/IDLFM.Rcheck/00install.out’ for details.
Information on the location(s) of code generating the ‘Note’s can be
obtained by re-running with environment variable R_KEEP_PKG

Dependency Network

Dependencies Reverse dependencies SparseArray IDLFM

Version History

new 1.0.0 Mar 10, 2026