Displaying 2 results from an estimated 2 matches for "layoffcause".
2010 Nov 19
0
printCoefmat() for a data.frame with factors
...together, giving a less readable
display. Perhaps printCoefmat()
needs another argument for this case (factor.ind= indices of column
numbers which are factors, or
stringsAsFactors=TRUE), or maybe there is some other method I could use.
Here is an example:
> summary(lor.Emp)
EmploymentLength LayoffCause Log Odds Ratio Std. Error z value Pr(>|z|)
1 <1Mo:1-3Mo Closure -0.04082199 0.5143769 -0.07936203 0.468372334
2 1-3Mo:3-12Mo Closure 0.02353050 0.2782868 0.08455486 0.466307643
3 3-12Mo:1-2Yr Closure 0.04904020 0.2327390 0.21070895 0.416557193
4 1-2Yr:2-5Yr Closure -0.07555132 0.2468528 -0.30...
2010 Oct 03
1
plyr: a*ply with functions that return matrices-- possible bug in aaply?
...array of size
2 x C x strata
> library(vcd)
> fun2way(Employment[,,1])
<1Mo 1-3Mo 3-12Mo 1-2Yr 2-5Yr
8 35 70 62 56
> fun2way(Employment[,,2])
<1Mo 1-3Mo 3-12Mo 1-2Yr 2-5Yr
40 85 181 85 118
>
> aaply(Employment, 3, fun2way)
LayoffCause <1Mo 1-3Mo 3-12Mo 1-2Yr 2-5Yr
Closure 8 35 70 62 56
Replaced 40 85 181 85 118
--
Michael Friendly Email: friendly AT yorku DOT ca
Professor, Psychology Dept.
York University Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street Web...