R: probabilities parameters to be used for examples
probs
R Documentation
probabilities parameters to be used for examples
Description
a list of probability parameters such as the probability that a
founder is assigned to each class, the transition probabilities and the probability that a child is symptomatic.
Usage
data(probs)
Details
probs a list of probability parameters:
For models with familial dependence:
p
a probability vector, each p[c] is the probability that an symptomatic founder is in class c for c>=1,
p0
the probability that a founder without symptoms is in class 0,
p.trans
an array of dimension K times K+1
times K+1, where K is the number of latent classes of
the model, and is such that p.trans[c_i,c_1,c_2] is the
conditional probability that a symptomatic individual
i is in class c_i given that his parents are in classes
c_1 and c_2,
p0connect
a vector of length K, where
p0connect[c] is the probability that a connector without
symptoms is in class 0,
given that one of his parents is in class c>=1 and the other in class 0,
p.found
the probability that a founder is symptomatic,
p.child
the probability that a child is symptomatic,
For models without familial dependence, all individuals are independent:
p
a probability vector, each p[c] is the probability that an symptomatic individual is in class c for c>=1,
p0
the probability that an individual without symptoms is in class 0,
p.aff
the probability that an individual is symptomatic,
Examples
data(probs)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(LCAextend)
Loading required package: boot
Loading required package: mvtnorm
Loading required package: rms
Loading required package: Hmisc
Loading required package: lattice
Attaching package: 'lattice'
The following object is masked from 'package:boot':
melanoma
Loading required package: survival
Attaching package: 'survival'
The following object is masked from 'package:boot':
aml
Loading required package: Formula
Loading required package: ggplot2
Attaching package: 'Hmisc'
The following objects are masked from 'package:base':
format.pval, round.POSIXt, trunc.POSIXt, units
Loading required package: SparseM
Attaching package: 'SparseM'
The following object is masked from 'package:base':
backsolve
Loading required package: kinship2
Loading required package: Matrix
Loading required package: quadprog
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LCAextend/probs.Rd_%03d_medium.png", width=480, height=480)
> ### Name: probs
> ### Title: probabilities parameters to be used for examples
> ### Aliases: probs
>
> ### ** Examples
>
> data(probs)
>
>
>
>
>
> dev.off()
null device
1
>