sv {clikcorr} | R Documentation |
Calculating starting values for the vector of (mean1, mean2, var1, corr, var2) from completely observed data.
Description
Calculates starting values for the vector of (mean1, mean2, var1, corr, var2) from completely observed data.
Usage
sv(data, lower1, upper1, lower2, upper2)
Arguments
data |
a data frame name. |
lower1 |
the lower bound of the first variable of the two variables whose correlation coefficient to be calculated. |
upper1 |
the upper bound of the first variable of the two variables whose correlation coefficient to be calculated. |
lower2 |
the lower bound of the second variable of the two variables whose correlation coefficient to be calculated. |
upper2 |
the upper bound of the second variable of the two variables whose correlation coefficient to be calculated. |
Details
function sv
calculates starting values for the vector of (mean1, mean2, var1, corr, var2) from completely observed data.
Value
mu1 |
starting value for the mean parameter of the first variable. |
mu2 |
starting value for the mean parameter of the second variable. |
var1 |
starting value for the variance parameter of the first variable. |
cor |
starting value for the correlation coefficient. |
var2 |
starting value for the variance parameter of the second variable. |
Author(s)
Yanming Li, Kerby Shedden, Brenda W. Gillespie and John A. Gillespie.
References
Yanming Li, Kerby Shedden, Brenda W. Gillespie and John A. Gillespie (2016). Calculating Profile Likelihood Estimates of the Correlation Coefficient in the Presence of Left, Right or Interval Censoring and Missing Data.
Examples
data(ND)
logND <- log(ND)
sv(logND, "t1_TCDD", "t2_TCDD", "t1_PeCDD", "t2_PeCDD")