Hi, first, you should always provide some repeatable code for us to have a
look at, that shows what you have tried so far.  
That being said,  you can use the subset= option  in glm to subdivide your
data and run separate models like that, e.g.

fit.1<-glm(y~x1+x2, data=yourdat, family=binomial, subset=group==1)
fit.2<-glm(y~x1+x2, data=yourdat, family=binomial, subset=group==2)

where group is your grouping variable.
Which should give you that kind of stratified model.
Hope this helps,
Corey

-----
Corey Sparks, PhD
Assistant Professor
Department of Demography and Organization Studies
University of Texas at San Antonio
501 West Durango Blvd
Monterey Building 2.270C
San Antonio, TX 78207
210-458-3166
corey.sparks 'at' utsa.edu
https://rowdyspace.utsa.edu/users/ozd504/www/index.htm
-- 
View this message in context: 
http://n4.nabble.com/logistic-regression-by-group-tp1577655p1577971.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to