Open remlapmot opened 8 years ago
Doesn't cols
contain what you need?
res2 = DataFrame(variable = res.rownms,
Estimate = res.cols[1],
StdError = res.cols[2],
z_val = res.cols[3],
p_val = res.cols[4])
gives
julia> res2 = DataFrame(variable = res.rownms,
Estimate = res.cols[1],
StdError = res.cols[2],
z_val = res.cols[3],
p_val = res.cols[4])
3×5 DataFrames.DataFrame
│ Row │ variable │ Estimate │ StdError │ z_val │ p_val │
├─────┼──────────┼──────────┼──────────┼──────────┼────────┤
│ 1 │ "x1" │ 9.89496 │ 0.928758 │ 10.654 │ <1e-99 │
│ 2 │ "x2" │ 0.280405 │ 0.245828 │ 1.14066 │ 0.0966 │
│ 3 │ "x3" │ -1.27742 │ 0.241684 │ -5.28552 │ <1e-99 │
Thanks indeed - sorry I am new to Julia and don't yet understand it very well
Hi, Thanks indeed for this.
I want to access the results from a call to
coeftable()
but I can't seem to as it does not have amat
field. My code based on your example looks like:which shows
res
has fieldscols
,colnms
, andrownms
, I was expecting amat
field to access the results from. If there was amat
of results I would then code something like:Thanks for any help Tom