search for: joint12

Displaying 9 results from an estimated 9 matches for "joint12".

2024 Aug 09
3
If loop
...t;- 1 > funC <- function() { > v <<- v+1 > } > > funC() > cat (v) > #2 > > On Fri, 9 Aug 2024, 09:03 Steven Yen, <styen at ntu.edu.tw> wrote: > > > Thanks. Hmm. The loop is doing what it is supposed to do. > > > > > try1<-function(joint12=FALSE,marg1=FALSE,marg2=FALSE, > > + cond12=FALSE,cond21=FALSE){ > > + # *************************************************** > > + # Testing if loop > > + # *************************************************** > > + if(joint12){ > > + {print (&quo...
2024 Aug 09
1
If loop
Thanks. Hmm. The loop is doing what it is supposed to do. > try1<-function(joint12=FALSE,marg1=FALSE,marg2=FALSE, +??????????????? cond12=FALSE,cond21=FALSE){ + # *************************************************** + # Testing if loop + # *************************************************** + if(joint12){ +?? {print ("joint12"); cat(joint12,"\n")} +?? {print (&...
2024 Aug 09
2
If loop
...only return one object and I think you want two or more v <- 1 funC <- function() { v <<- v+1 } funC() cat (v) #2 On Fri, 9 Aug 2024, 09:03 Steven Yen, <styen at ntu.edu.tw> wrote: > Thanks. Hmm. The loop is doing what it is supposed to do. > > > try1<-function(joint12=FALSE,marg1=FALSE,marg2=FALSE, > + cond12=FALSE,cond21=FALSE){ > + # *************************************************** > + # Testing if loop > + # *************************************************** > + if(joint12){ > + {print ("joint12"); cat(joint12,...
2024 Aug 09
1
If loop
Is something wrong in the initialisation part that we don't see? joint12 <- marg1 <-F marg1 <-T if (joint12) { print ("joint 12") cat (joint12) } if (marg1) { print("marg 1") cat(marg1) } Would probably be my diagnostic approach On Fri, 9 Aug 2024, 04:45 Steven Yen, <styen at ntu.edu.tw> wrote: > Can someone help me wi...
2024 Aug 09
3
If loop
Can someone help me with the if loop below? In the subroutine, I initialize all of (joint12,marg1,marg2,cond12,cond21) as FALSE, and call with only one of them being TRUE: ,...,joint12=FALSE,marg1=FALSE,marg2=FALSE,cond12=FALSE,cond21=FALSE,,,, joint12 seems to always kick in, even though I call with, e.g., marg1 being TRUE and everything else being FALSE. My attempts with if... else...
2024 Aug 09
1
If loop
The following (using if else) did not help. Seemed like joint12 always kicked in. ??? me1<-me0<-NULL. ??? if(joint12){ ????? {me1<-cbind(me1,v1$p12);? me0<-cbind(me0,v0$p12)} ??? } else if(marg1) { ????? {me1<-cbind(me1,v1$p1);?? me0<-cbind(me0,v0$p1)} ??? } else if(marg2) { ????? {me1<-cbind(me1,v1$p2);?? me0<-cbind(me0,v0$p2)}...
2024 Aug 11
1
Printing
...t<-out[!grepl(colnames(zx)[1],rownames(out)),] if(printing){ cat("\nAPPs of bivariate ordered probit probabilities", ??? "\nWritten by Steven T. Yen (Last update: 08.11.24)", ??? "\ny1.level=",???? y1.level, ??? "? y2.level=",???? y2.level, ??? "\njoint12 =",???? joint12, ??? "\nmarg1 =",?????? marg1, ??? "\nmarg2 =",?????? marg2, ??? "\ncond12 =",????? cond12, ??? "\ncond21 =",????? cond21, ??? "\nCovariance matrix:",vb.method, ??? "\nWeighted =",??????? weighted, ??? "\nA...
2024 Aug 11
1
Printing
...1],rownames(out)),] > if(printing){ > cat("\nAPPs of bivariate ordered probit probabilities", > ??? "\nWritten by Steven T. Yen (Last update: 08.11.24)", > ??? "\ny1.level=",???? y1.level, > ??? "? y2.level=",???? y2.level, > ??? "\njoint12 =",???? joint12, > ??? "\nmarg1 =",?????? marg1, > ??? "\nmarg2 =",?????? marg2, > ??? "\ncond12 =",????? cond12, > ??? "\ncond21 =",????? cond21, > ??? "\nCovariance matrix:",vb.method, > ??? "\nWeighted =",??...
2024 Aug 11
3
Printing
...> if(printing){ >> cat("\nAPPs of bivariate ordered probit probabilities", >> ???? "\nWritten by Steven T. Yen (Last update: 08.11.24)", >> ???? "\ny1.level=",???? y1.level, >> ???? "? y2.level=",???? y2.level, >> ???? "\njoint12 =",???? joint12, >> ???? "\nmarg1 =",?????? marg1, >> ???? "\nmarg2 =",?????? marg2, >> ???? "\ncond12 =",????? cond12, >> ???? "\ncond21 =",????? cond21, >> ???? "\nCovariance matrix:",vb.method, >> ???? &qu...