mcp | R Documentation |
Performs multiple change-point analysis in univariate or multivariate data, to find layer boundaries in a perforation log.
mcp( data, R = 199, alpha = 2, sig.level = 0.01, min.perc = 15, conf.level = 0.95 )
data |
A data frame containing the depth/distance in the first column, and the variables of interest in the rest of the columns, for a CPTu test: point resistance (qc), sleeve friction (fs), and pore-water pressure (u) |
R |
The number of random permutations |
alpha |
A parameter between 0 (exclusive) and 2 (inclusive). lower values make allow for more variation in the search for changepoints |
sig.level |
Significance level to determine significance of the changepoints |
min.perc |
Minimum percentage of data points per layer (between changepoints) |
conf.level |
Confidence level to use for plot and summary statistics (Default is 0.95) |
The example data given is intended to show the structure needed for input data. The user should follow this structure, which in general corresponds with a data frame with a sequence in the first column and the observed/measured values in the rest of the columns
ggplot and plotly objects showing the layer distinction, statistical summary of the layers, and a summary table
Nicholas A. James, David S. Matteson (2014). ecp: An R Package for Nonparametric Multiple Change Point Analysis of Multivariate Data, Journal of Statistical Software, 62(7), 1-25.
mcp(CPTu_data, R = 199, alpha = 2, sig.level = .01, min.perc = 15) # multivariate example mcp(DPM_data, R = 199, alpha = 2, sig.level = .01, min.perc = 15) # univariate example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.