Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formula issue in bivariate logistic #325

Open
econcreek opened this issue Nov 2, 2018 · 0 comments
Open

formula issue in bivariate logistic #325

econcreek opened this issue Nov 2, 2018 · 0 comments

Comments

@econcreek
Copy link

For the model blogit, when i have different covariates for the two dependent variables, the code returns "Error in formula.default(object, env = baseenv()) : invalid formula". The simulate code is as follows
n=100;
x1=rnorm(n);
x2=rnorm(n);
x3=rnorm(n);
y1=rbinom(n,1,0.5);
y2=rbinom(n,1,0.5);
mydata=data.frame(y1,y2,x1,x2,x3);
breg=zelig(list(y1x1+x2,y2x1+x3),model="blogit",data=mydata).

Anyone has the same issue of estimate bivariate logit model with different regressors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant