# [R] (no subject)

malika yassa y@@@@_m@||k@ @end|ng |rom y@hoo@|r
Sat May 12 18:42:28 CEST 2018

```
hello
for exampl, i have this programme
# Generating data which are right truncated
library(DTDA)
library(splines)
library(survival)
n<-25
X<-runif(n,0,1)
V<-runif(n,0.75,1)
for (i in 1:n){
while (X[i]>V[i]){
X[i]<-runif(1,0,1)
V[i]<-runif(1,0.75,1)
}}
res<-lynden(X=X,U=NA, V=V, boot=TRUE)
attach(res)
temps = time
M_i = n.event
L_t = res
F_t=1-L_t
par(mfrow=c(1,1))
plot(L_t\$time,L_t\$survival,type="s",lty=2:3,lwd=2,las=1,cex.lab=1.1,font.lab=2,col="red",xlab="temps",ylab="L(t)",main="Esitmation de la Fonction de Survie L(t)")

i need to calculate the probability p(X>V)
Le jeudi 10 mai 2018 à 17:15:06 UTC+2, John Kane <jrkrideau using yahoo.ca> a écrit :

We need some idea of the problem.

http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

On Thursday, May 10, 2018, 11:07:30 a.m. EDT, malika yassa via R-help <r-help using r-project.org> wrote:

Hello

Do You help me, i have the problem in the package DTDA for  find the probability of truncation  (alpha)
thank you

[[alternative HTML version deleted]]

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help