Learn R Programming

BMhyb (version 1.5.2)

GenerateRandomValues: Generate random values

Description

Generate random value for parameters

Usage

GenerateRandomValues(data, free.parameters, lower, upper)

Arguments

data

numerical vector that contains trait data

free.parameters

TRUE/FALSE argument for free parameters

lower

lower bound for the new values

upper

upper bound for the new values

Value

A vector contains the generate values for parameters.

Details

The function generates random values for parameter estimate. The bound for each paramter is set up using exponential and uniform distribution accordingly.