Learn R Programming

nspmix (version 2.0-0)

Nonparametric and Semiparametric Mixture Estimation

Description

Mainly for maximum likelihood estimation of nonparametric and semiparametric mixture models, but can also be used for fitting finite mixtures. The algorithms are developed in Wang (2007) and Wang (2010) .

Copy Link

Version

Install

install.packages('nspmix')

Monthly Downloads

271

Version

2.0-0

License

GPL (>= 2)

Maintainer

Yong Wang

Last Published

May 10th, 2025

Functions in nspmix (2.0-0)

llex

Log-likleihood Extra Term.
logd

Log-density and its derivative values
llexdb

Derivative of the log-likleihood Extra Term
npnorm

Class npnorm
npnbinom

Class npnbinom
mlogit

Class mlogit
loglik

Log-likelihood value of a mixture
plot.npnorm

Plotting a Nonparametric or Semiparametric Normal Mixture
plot.nspmix

Plots a function for an object of class nspmix
print.disc

Prints a discrete distribution function
nppois

Class nppois
sort.npnorm

Sorting of an Object of Class npnorm
plotgrad

Plot the Gradient Function
plot.disc

Plot a discrete distribution function
lungcancer

Lung Cancer Data
plot.nppois

Plotting a nonparametric Poisson mixture
thai

Illness Spells and Frequencies of Thai Preschool Children
plot.npgeom

Plotting a nonparametric geometric mixture
npgeom

Class npgeom
valid

Valid parameter values
toxo

Toxoplasmosis Data
plot.npnbinom

Plotting a nonparametric negative binomial mixture
whist

Weighted Histograms Plots or computes the histogram with observations with multiplicities/weights. Just like hist, whist can either plot the histogram or compute the values that define the histogram, by setting plot to TRUE or FALSE. The histogram can either be the one for frequencies or density, by setting freq to TRUE or FALSE.
suppspace

Support space
sort.nppois

Sorting of an Object of Class nppois
weight

Weights
gridpoints

Grid points
dmix

Density function of a mixture distribution
disc

Class disc
hcnm

Hierarchical Constrained Newton method
initial

Initialization for a nonparametric/semiparametric mixture
cnm

Maximum Likelihood Estimation of a Nonparametric Mixture Model
cvps

Class cvps
cnmms

Maximum Likelihood Estimation of a Semiparametric Mixture Model
betablockers

Beta-blockers Data
brca

Z-values of BRCA Data
initial0

Initialisation