R/doubleEnter.R

Defines functions doubleEnter

Documented in doubleEnter

#' DoubleEnter
#'
#' @param proband The proband scores
#' @param sibling The matched sibling scores
#' @param Rs The relatedness coefficients
#'
#' @return A dataframe
#' @export
#'
#' @examples X<-DFSimulated(10,10,.2,.2)
#' Y<-doubleEnter(X[,"proband"], X[,"sibling"], X[,"Rs"])
doubleEnter<-function(proband,sibling,Rs){
  p<-c(proband, sibling) #Proband is simply used as the name for the LHS of the model
  s<-c(sibling, proband) #Sibling is the RHS version of the scores
  Rs<-c(Rs,Rs) #The coefficients of relationship
  proband<-p
  sibling<-s
  return(data.frame(proband,sibling,Rs))
}

Try the Omisc package in your browser

Any scripts or data that you put into this service are public.

Omisc documentation built on Aug. 9, 2022, 5:09 p.m.