I'm trying to create scattergraphs of data.

I'm simply using

plot(variable1, variable2, col = "red") for now.

But I want the y-axis to go from 0-1 with 0.1 increments. Right now it goes from 0.4-0.9 with 0.1 increments.

Can someone tell me what I need to add to get the desired axis length please?

Many thanks :cool: ]]>

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? ]]>