search for: halptekin

Displaying 4 results from an estimated 4 matches for "halptekin".

2011 Jul 19
3
How to get predicted values of y for different x values?
Here is my model with interaction terms and control variables (I changed variables names for easy read): reg1 <- lm(y ~ x1*x2*x3 +control1 + control2 + control3) x1 ranges from 0 to 6; x2 from 0 to 5; and x3 from 0 to 4. All three are discrete ordinal variables; but I will treat them as continuous variables. (a) How can I see the predicted values of y for each of these scenarios (210
2012 Oct 12
0
goodness of fit for logistic regression with survey package
I am making exploratory analyses on a complex survey data by using survey package. Could you help me how to see the goodness of fit for the model below? Should I use AIC, BIC, ROC, or what? What code would let me run a goodness of fit test for the model? Here are my codes: #incorporating design effects# > mydesign <- svydesign(id=~clust, strata=~strat, weights=~sweight, > data=mydata)
2012 Jun 21
4
crosstable and regression for survey data (weighted)
I have survey data that I am working on. I need to make some multi-way tables and regression analyses on the data. After attaching the data, this is the code I use for tables for four variables (sweight is the weight variable): > a <- xtabs(sweight~research.area + gender + a2n2 + age) > tmp <- ftable(a) Is this correct? I don't think I need to use the strata and cluster
2012 Nov 07
4
conditional coding question
I have a big dataset. I want to create a new factor variable with certain conditions based on two existing numeric variables. Existing variables: indinc (range: 0 to 16), groupinc (range -3 to 5) Conditional values that 'incorp' will take: If groupinc = 5, then ?cons?; If groupinc is -3 : -2, AND indinc < 9, then ?ethnat?; If groupinc is -2 : -1, AND indinc > 8, then ?civic?; If