Skip to content

AssetPricing

Optimal Pricing of Assets with Fixed Expiry Date

v1.0-3 · Oct 7, 2021 · GPL (>= 2)

Description

Calculates the optimal price of assets (such as airline flight seats, hotel room bookings) whose value becomes zero after a fixed ``expiry date''. Assumes potential customers arrive (possibly in groups) according to a known inhomogeneous Poisson process. Also assumes a known time-varying elasticity of demand (price sensitivity) function. Uses elementary techniques based on ordinary differential equations. Uses the package deSolve to effect the solution of these differential equations.

Downloads

CRAN

384

Last 30 days

11301st

948

Last 90 days

4.8K

Last year

Trend: +48.3% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

25

Last 90 days

110

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

4

Last 7 days

28

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 NOTE
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-windows-x86_64 NOTE
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 NOTE
r-release-linux-x86_64 NOTE
r-release-macos-arm64 NOTE
r-release-macos-x86_64 NOTE
r-release-windows-x86_64 NOTE
Check details (15 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Rolf Turner <r.turner@auckland.ac.nz>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Rolf",
                    family = "Turner",
                    role = c("aut", "cre"),
                    email = "r.turner@auckland.ac.nz")
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-clang

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Rolf Turner <r.turner@auckland.ac.nz>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Rolf",
                    family = "Turner",
                    role = c("aut", "cre"),
                    email = "r.turner@auckland.ac.nz")
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-devel-linux-x86_64-fedora-clang

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-devel-linux-x86_64-fedora-gcc

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-devel-windows-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-oldrel-macos-arm64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-oldrel-macos-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-oldrel-windows-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-patched-linux-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-release-linux-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-release-macos-arm64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-release-macos-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-release-windows-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^

Check History

NOTE 0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Rolf Turner <r.turner@auckland.ac.nz>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Rolf",
                    family = "Turner",
                    role = c("aut", "cre"),
                 
...[truncated]...
and.ac.nz")
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Rolf Turner <r.turner@auckland.ac.nz>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Rolf",
                    family = "Turner",
                    role = c("aut", "cre"),
                 
...[truncated]...
and.ac.nz")
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-fedora-clang

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-devel-linux-x86_64-fedora-gcc

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-devel-macos-arm64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-devel-windows-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-patched-linux-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-release-linux-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-release-macos-arm64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-release-macos-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-release-windows-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-oldrel-macos-arm64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-oldrel-macos-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^
NOTE r-oldrel-windows-x86_64

Rd files

checkRd: (-1) plot.AssetPricing.Rd:199-200: Lost braces
   199 |   yakka. (Note that \code{flap} stands for dQuote{function list
       |                                                  ^

Code

Structure

Lines of code

9,881

Files

72

Compiled share

0%

Has compiled src

No

Language breakdown

R 8,867 (89.7%)Docs 1,014 (10.3%)

API

Exported functions

22

Internal functions

5

Recent export changes

v0.1-3+1 progRep
v0.1-2+1 getS

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

80%

\dontrun example ratio

25%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

100%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

0.99

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

9

First release

2012-11-07

Latest release

2021-10-07

Avg cadence

142 days

Cold removal rate

Dep drift

1

LOC over versions

v0.0-8: 8,356 LOCv0.0-10: 8,416 LOCv0.0-11: 8,416 LOCv0.1-0: 8,444 LOCv0.1-2: 9,303 LOCv0.1-3: 9,840 LOCv1.0-0: 9,868 LOCv1.0-1: 9,882 LOCv1.0-3: 9,881 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies polynom deSolve AssetPricing

Version History

10 tracked
new 1.0-3 Mar 10, 2026
updated 1.0-3 ← 1.0-1 diff Oct 6, 2021
updated 1.0-1 ← 1.0-0 diff Mar 31, 2018
updated 1.0-0 ← 0.1-3 diff Jun 12, 2014
updated 0.1-3 ← 0.1-2 diff Mar 4, 2014
updated 0.1-2 ← 0.1-0 diff Jan 26, 2014
updated 0.1-0 ← 0.0-11 diff Aug 12, 2013
updated 0.0-11 ← 0.0-10 diff Feb 10, 2013
updated 0.0-10 ← 0.0-8 diff Dec 31, 2012
new 0.0-8 Nov 6, 2012