2/18/2023 0 Comments Stata regress by group![]() ![]() What would guarantee all positive values would be to factor analyse the logarithms of the variables, predict a factor and then exponentiate, but whether that would work well depends on many things. ![]() That rescaling wouldn't guarantee all values being positive. You could, I suppose, rescale a factor using what you think are an appropriate mean and standard deviation, but there is no real gain in that, especially as you want a predictor, not a proxy for your response variable. You have missed that in your reading! I suppose that using zero means could be regarded as a convention, not an absolute requirement, but it seems to be a universal convention. Necessarily information on means is discarded and new factors have zero means, so negative values are inevitable. My own view is that this is somewhere between non-standard and downright weird as an application of factor analysis, but there is considerable variation among statistically-minded people on the merits of factor analysis and how it might be well used, so conflicting advice is highly likely.įactor analysis works on either the correlation or the covariance matrix. This is expecting much more of factor analysis than it will give, at least by default. Here is the data set: schid group1 group2 group3 part98 female yob I need 2 regressions, so would set would I type? regress group1=1 yob femaleĪnd is the average difference given to me or is that something I need to calculate on my own?Īll I know is that I have to use the regress command. What should I type? I've learned how to calculate the regression between an x and y variable where it's like regress y xīut I don't know how to calculate regression between group 1 and the comparison group when compared to another characteristic. ![]() I am new to Stata, so I don’t know what to type in the command window. I want to determine the average difference between 1998 treatment schools (group1=1) and comparison schools (group1=0) in the following two characteristics:Proportion of female children(“female”),Average child year of birth (“yob”) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |