plot_fit_1: A plot of the cost function or number of fitted statistics.

Description Usage Arguments Value See Also

View source: R/fitted_plotting.R

Description

A plot of the cost function with respect to one admix variable specified by the user. Sorry about the name, all the good ones were taken and the fact that the word "graph" means two different things doesn't help any.

Usage

1
plot_fit_1(object, X, resolution = 100, show_fit = FALSE, sigma = 6, ...)

Arguments

object

The fitted object.

X

An admix variable name (remember quotation marks).

resolution

How densely is the function evaluated.

show_fit

Should the function plot the number of statistics where the graph fits the data instead of the cost_function?

sigma

If show_fit is TRUE then each statistic is considered fitted if the difference between a prediction and the observation statistics is no more than D*σ/(2*Z). Notice that even when plotting the number of fitted statistics, we have no guarantee that the chosen variables maximize this number as the fitting function still optimizes cost_function.

...

Additional parameters.

Value

Values for optimal cost function for values of X between zero and one, plotted.

See Also

plot_fit_2


mailund/admixture_graph documentation built on May 21, 2019, 11:06 a.m.