Re: [R] country fixed effects model with binary dependent variable

2016-07-23 Thread Jim Lemon
Hi Cristina, As Rolf has noted, you probably don't want to persist with "lm" since I think you have dichotomized your initial dependent variable. I also think that you meant "don't worry about the change of variable names" with "how I wrote the variables". I also think that you want to test interac

Re: [R] country fixed effects model with binary dependent variable

2016-07-23 Thread David Winsemius
> On Jul 23, 2016, at 7:49 AM, Cristina Cametti > wrote: > > Dear all, > > I am having problems finding a reliable code for a country fixed effects > model with binary dependent variable. I was able to run it for another part > of my research, because in that case the dependent variable is c

Re: [R] [FORGED] country fixed effects model with binary dependent variable

2016-07-23 Thread Rolf Turner
On 24/07/16 02:49, Cristina Cametti wrote: Dear all, I am having problems finding a reliable code for a country fixed effects model with binary dependent variable. I was able to run it for another part of my research, because in that case the dependent variable is continuous. This is my code

[R] country fixed effects model with binary dependent variable

2016-07-23 Thread Cristina Cametti
Dear all, I am having problems finding a reliable code for a country fixed effects model with binary dependent variable. I was able to run it for another part of my research, because in that case the dependent variable is continuous. This is my code for the continuous dependent variable “imwbcr

[R] Estimators for non-normal data

2016-07-23 Thread Nika Sušac
Hi! I have non-normal data (items are continuous on a 9-point scale, but not normally distributed) and I want to conduct cfa. Which of the estimators available in lavaan do you recommend me to use? Thanks in advance! [[alternative HTML version deleted]] ___

Re: [R] Using C library in R

2016-07-23 Thread Dirk Eddelbuettel
Jeff Newmiller dcn.davis.ca.us> writes: > You are entitled to your opinion, but apparently you have not read the Posting Guide either. Where as you chose to ignore it (cf paragraph about Good Manners). That is clearly superior. The Posting Guide is not specific about this and does NOT say tha

Re: [R] Improving performance by rewriting for loops into apply functions

2016-07-23 Thread Ranjan Maitra
Hi, The apply here does exactly what you would expect. (Your problem seems to be with the function that you have written. For some reason, you want to change the values of path2 but are passing it as a variable o a function. The global value of path2 will not change.) For that, you have to also