Learn R Programming

PSIMEX (version 1.1)

plot.Psimex: A plot illustrating the extrapolation phase of the P-SIMEX algorithm

Description

This function produces a plot with the corrected estimate of interest and its 95 % confidence intervals.

Usage

plot.Psimex(results, extrapolation_results, lambda, lambda0, estimate0, 
            parameter, fitting.method)

Arguments

results

A dataset containg the simulated values. It is the output of simul.replace or simul.na.

extrapolation_results

A dataset containg the extrapolated values. It is the output of extrapolation.

lambda

A vector of real numbers containing the error proportions to be generated.

lambda0

A real number specifying the initial error proportion.

estimate0

The initial naive estimate of the parameter

parameter

A string specifying the parameter of interest. It must be 'inbreeding' or 'heritability'.

fitting.method

A string or a vector of strings specifying the extrapolation functions to be fitted. It must be 'linear', 'quadratic', 'nonlinear' or 'cubic'.