RSID ALLELE

rs12345. A.

rs3984. C.

rs12398432. G.

etc.

Now I need to remove the . after each rs-number.

I tried this option:

df$RSID[df$RSID == "."] <- " "

df$ALLELE[df$ALLELE == "."] <- " "

But unfortunately it did not work. Do you have suggestions?

Thanks in advance! ]]>

I want to look at the change in the percentage of income savings measured in dollars using repeated measures data for older adults. I want to compare three groups based on their father's occupation while growing up.

I want to estimate different slopes and intercepts for the three groups. For example: group A is subjects whose father's were blue-collar; group B is subjects whose father's were white-collar; group C is subjects whose father's were other types of workers. I have repeated measures for 10 annual surveys and subjects reported how much of their income they saved. I want to see if the intercept and trajectory differs for the three groups.

This is what I come up with but I am not sure if this gets at the appropriate verbal explanation. Thank you very much for your time. I truly appreciate it. Thank you!

m1 <- lmer(savings~ time + (time|subjects))

m1 looks at the impact of time on savings and estimates intercepts and slopes for each subject.

m2 <- lmer(savings~time*fathers_occupation + (time|subjects))

Does m2 examine the differences in the intercept and slope for the two groups? ]]>

I've got a bit of advertising data here and I'd like to make a model out of it which can predict future events.

So I have the amount of money spent, the number of billboards we've got and how many people we think have seen the billboard. We also have the number of walk ins we think are due to the billboard but want to know how many more walk ins we'll have if we invest more/get more exposure/get more billboards around the place.

I'd like to do this in R but I'm not sure how to do it. Could someone lead me into a direction about what I should be doing to get a decent prediction (no seasonality).

Feel free to ask me more questions regarding all of this! I'd love some input and help from people who are good at stats (unlike me).

Thanks ]]>