
Generates raw data from summary statistics using uni/multivariate log/truncated normal distribution
RawGen(
x,
Parms = 1,
Pop = 2,
R.res = NULL,
dist = "trunc",
lower = -Inf,
upper = Inf,
format = "wide",
complete_cases = FALSE
)
Tibble/Data frame or list containing summary statistics for multiple parameters measured in both sexes in two or more populations.
Number of the column containing names of measured parameters, Default: 1
Number of the column containing populations' names, Default: 2
Pooled within correlational matrix, Default: NULL
univariate distribution used for data generation either log
for
log-normal or trunc
for truncated, Default: 'trunc'
vector of lower bounds, Default: -Inf
vector of upper bounds, Default: Inf
form of the resultant tibble either 'long' or 'wide', Default: 'wide'
Logical; if TRUE rows with missing values will be removed, Default: FALSE
tibble of raw data
If data generation is desired using multivariate distribution data
is entered in the form of a list of summary statistics and pooled within
correlational matrix as in baboon.parms_list, or the summary statistics
are entered separately in the form of a data frame/tibble as in
baboon.parms_df with a separate correlational matrix as in R. If data
frame/tibble is entered without a correlational matrix, data generation is
carried out using univariate distribution.
N.B: Transformation of raw summary data to logged data is only possible for
univariate distribution and if multivariate log-normal distribution is desired
logged values should be entered directly with dist
set to trunc
.
HUSSEIN2019TestDimorph
# NOT RUN {
# Data generation using univariate distribution
library(TestDimorph)
RawGen(baboon.parms_df)
# Data generation using multivariate distribution
library(TestDimorph)
RawGen(baboon.parms_list)
# }
Run the code above in your browser using DataLab