Hi All,
Can you tell me why I get the error message below? It's driving me nuts.
Thanks,
Tom
r_squared
[[1]]
[1] 0.9083936
[[2]]
[1] 0.8871647
[[3]]
[1] 0.8193883
[[4]]
[1] 0.728157
[[5]]
[1] 0.8849525
[[6]]
[1] 0.8459416
[[7]]
[1] 0.6702318
[[8]]
[1] 0.02997816
[[9]]
[1] 0.8974268
Hi All,
Is there an easy way to count TRUEs for each row?
Thanks,
Tom
x1x2x3x4
1 TRUE TRUE TRUE TRUE
2 FALSE TRUE TRUE TRUE
3 TRUE FALSE TRUE TRUE
4 FALSE FALSE TRUE TRUE
5 TRUE TRUE FALSE TRUE
6 FALSE TRUE FALSE TRUE
7 TRUE FALSE FALSE TRUE
8
Hi All,
Thanks for your help.
I want to add a letter x and a number to a string like x1.
How do I do that?
Thanks,
Tom
--
View this message in context:
http://n4.nabble.com/Creating-a-string-tp963915p963915.html
Sent from the R help mailing list archive at Nabble.com.
Hi All,
After I run the lm function, where (which variable) do I find my R-squared
for further calculations?
Thanks,
Tom
--
View this message in context:
http://n4.nabble.com/R2-in-lm-function-tp963958p963958.html
Sent from the R help mailing list archive at Nabble.com.
Hi All,
I need to run muliple lm functions. My independent variables are called
dataset$x1, x2, x3, x4 etc.
How can I use a loop counter variable to replace the numbers?
fit1=lm(dataset$y~dataset$x1)
fit2=lm(dataset$y~dataset$x2)
fit3=lm(dataset$y~dataset$x3)
fit4=lm(dataset$y~dataset$x4)
5 matches
Mail list logo