Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
293 views
in Technique[技术] by (71.8m points)

model - How do I do an interaction term with the same variable in R

I am trying to interact the same variable (baseharm) in my regression but I am not seeing the result of the interaction, just the variable's coefficient on its own. Is this possible to do? And if so, how?:

harm13 <- lm(notify ~ newviolent1 + as.factor(distress_all) + baseharm + (baseharm*baseharm) + offrole1 + injuryharm + weapharm + harmhatescore, fixed_effects = ~ YEAR, data = subset(larceny, distress_all <= 3)) harm13


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...