Displaying 3 results from an estimated 3 matches for "x2g".
Did you mean:
x2
2011 Jun 27
1
group interaction in a varying coeff. model (mgcv)
Dear UseRs,
I built varying coefficient models (in mgcv) for two groups separately, with one explanatory and one moderator variable (see the example below).
# -------
# Example:
# ------
# generate moderator variable (can the same for both groups)
modvar <- c(1:1000)
# generate group1 values
x1 <- rnorm(1000)
y1 <- scale(cbind(1,poly(modvar,2))%*%c(1,2,1)*x1 +
rnorm(1000,0,0.3))
#
2012 Jun 15
0
Flexmix package
Hi,
I am using the package "flexmix" and would like get some assistance.
I am trying to run two equations jointly
Y1=X1B+E1
Y2=X2G+E2
So that I have X and Y in a matrix format and would like to run the latent
class model using flexmix.
Though, my problem here is that Flexmix automatically generates intercepts.
I have intercept for both of the equations that my X matrix looks like
this...
1 X11 X21 X31 0 0 0 0
: :...
2011 May 02
2
Lasso with Categorical Variables
Hi! This is my first time posting. I've read the general rules and
guidelines, but please bear with me if I make some fatal error in
posting. Anyway, I have a continuous response and 29 predictors made
up of continuous variables and nominal and ordinal categorical
variables. I'd like to do lasso on these, but I get an error. The way
I am using "lars" doesn't allow for the