sv {clikcorr} | R Documentation |
Calculates starting values for the vector of (mean1, mean2, var1, corr, var2) from completely observed data.
sv(data, lower1, upper1, lower2, upper2)
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. |
function sv
calculates starting values for the vector of (mean1, mean2, var1, corr, var2) from completely observed data.
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. |
Yanming Li, Kerby Shedden, Brenda W. Gillespie and John A. Gillespie.
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.
data(ND)
logND <- log(ND)
sv(logND, "t1_TCDD", "t2_TCDD", "t1_PeCDD", "t2_PeCDD")