search for: facweek

Displaying 1 result from an estimated 1 matches for "facweek".

2009 Jun 27
1
Regression; how to get t-values for all parameters estimates
...e to obtain the corresponding t-values for ALL parameters (not just the number of effects minus 1, provided by summary()). Does anyone know how to get (all of) them? Here comes what I've already tried: ## Try data: > Data <- rbinom(1000,50,.9); > Dates <- Sys.Date()-(1000:1) > facweek <- factor(weekdays(Dates,abbreviate=TRUE)) > facmonth <- factor(months(Dates,abbreviate=TRUE)) > contrasts(facweek) <- contr.sum ; > contrasts(facmonth) <- contr.sum ; > fit <- lm(formula = Data ~ facweek + facmonth) > summary(fit) Call: lm(formula = Data ~ facweek...