Learn R Programming

imp4p (version 1.2)

pi.mcar.probit: Estimating the proportion of MCAR values in a sample using a probit model.

Description

This function allows estimating the proportion of MCAR values in a sample using a probit model.

Usage

pi.mcar.probit(tab,conditions)

Arguments

tab

A data matrix containing numeric and missing values. Each column of this matrix is assumed to correspond to an experimental sample, and each row to an identified peptide.

conditions

A vector of factors indicating the biological condition to which each column (experimental sample) belongs.

Value

A list composed of:

pi.mcar

The estimated proportion of MCAR values.

coef1

The estimated intercept of each probit model estimated in a sample.

coef2

The estimated coefficient of each probit model estimated in a sample.

See Also

estim.mix

Examples

Run this code
# NOT RUN {
#Simulating data
res.sim=sim.data(nb.pept=2000,nb.miss=600);

#Proportion of MCAR values in each sample
pi.mcar.probit(tab=res.sim$dat.obs, conditions=res.sim$condition);
# }

Run the code above in your browser using DataLab