Displaying 2 results from an estimated 2 matches for "result_lm".
2013 Mar 09
2
quesion about lm function
Hi all:
My data is in the attachment.
I want to analysis the mean difference of y between 2 sex.
My code:
result_lm<-lm(y~factor(sex) + x1 + x2)
summary(result_lm)
The result of "factor(sex)m" 136.83, is the mean difference of y between 2 sex,and the corresponding p value is 0.07618.
My question is: how to get the mean y of sex(m) and sex(f) respectively via lm function?
Many thanks for your he...
2002 Sep 06
1
Scope problems - passing an argument from one function to another (LME) within
...oin the scope of the main function?
Thank you,
Derek Eder
my.function_function(my.data,my.subset="NORM")
{
## call to function LME. Problem: the variable my.subset is not seen by LME ##
# assign("my.subset", my.subset, env = sys.frame()) Now it works! #
my.result_lme( X ~ Y, random=~1|Z, data=my.data, subset= W==my.subset)
}
Derek N. Eder
G?teborgs Universitet
Institutionen f?r klinisk neurovetenskap
Klinisk Neurofysiologi
Sahlgrenska universitetssjukhuset SS/SU
Bl? straket 7, v?n 3
SE 413 45 G?teborg
Sverige
Tlf. +46 (031) 34 2-6139 (office)
Tlf. +46 (03...