[R] Fitting a line on trellis plot
Frederic Ntirenganya
ntfredo at gmail.com
Wed Mar 25 13:30:36 CET 2015
Hi all,
I am doing analysis which involves fitting a line on trellis plot. The
factor is month. As you know a year has 12 months and I expect to get
12 lines one for each month. I am getting the following results which
is different to my expectation. Am I have to do anything about the
data? Any suggestion is welcome. Thanks.
Call:
lm(formula = curr_data[[tmin_col]] ~ curr_data[[year_col]] -
1 | curr_data[[month_col]])
Residuals:
Min 1Q Median 3Q Max
-5.0625 -0.7625 0.0375 0.9375 4.9375
Coefficients: (1 not defined because of singularities)
Estimate Std.
Error t value Pr(>|t|)
(Intercept) 15.56254
0.01079 1442 <2e-16 ***
curr_data[[year_col]] | curr_data[[month_col]]TRUE NA
NA NA NA
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 1.327 on 15115 degrees of freedom
(72 observations deleted due to missingness)
Regards,
Frederic.
Frederic Ntirenganya
Maseno University,
African Maths Initiative,
Kenya.
Mobile:(+254)718492836
Email: fredo at aims.ac.za
https://sites.google.com/a/aims.ac.za/fredo/
[[alternative HTML version deleted]]
More information about the R-help
mailing list