xA、xB、および の3 つのベクトルを定義する必要がありますxC。各ベクトルには、("A",1)、("A",2) などの 3 つの値があります。私が入ろうとするたびにxA<- ("A",1),("A",2),..、Rは予期しない「、」と言うだけです。
また、それを知っている対数方程式から p 値の 9 ベクトルを決定する必要がありますp =  exp(u)/(1 + exp(u))。迷っています。どんな助けでも大歓迎です。
あなたが必要listとするc- または単にlist:
 # option 1
 xA <- list(c("A", 1),  c("A", 2), c("A", 3))   
 # note, the integers will be coerced to strings
 # option 2
 xA <- list(list("A", 1), list("A", 2), list("A", 3))
 # integers will *not* be coerced to strings. 
 # options 3
 xA <- list(A=1, A=2, A=3)