Learn R Programming

FractalParameterEstimation (version 1.1.2)

createSmallerMatrix: Creates Smaller Matrix from Data

Description

In this function a smaller matrix is created with dimensions of size which is calculated over ramification. All of the cells are filled with 99, which is edited in a further step by usage of function (fillMatrix). This matrix is desired, because it represents the status of the data one step before its result. Therefore the impact of q in the [p-p-p-q]-model is neglected and the estimation of p can be one on the basis of the smaller matrix. Function is used by main function "estimationFunction" and shall not be called or changed by user.

Usage

createSmallerMatrix(givenMatrix)

Arguments

givenMatrix

Data for which smaller Matrix should be computed

Value

Matrix with size of three to the power of ramification of data - 1. This matrix is filled on every position with 99.

References

Hermann, P., Mrkvicka, T., Mattfeldt, T., Minarova, M., Helisova, K., Nicolis, O., Wartner, F., and Stehlik, M. (2015). Fractal and stochastic Geometry Inference for Breast Cancer: a Case Study with Random Fractal Models and Quermass-Interaction Process. Statistics in Medicine, 34(18), 2636-2661. doi: 10.1002/sim.6497.

Examples

Run this code
# NOT RUN {
matrix.s = createSmallerMatrix(Data0201)
# }

Run the code above in your browser using DataLab