# How to get within r2 and t value from FixedEffectModels?

**URL:** <https://discourse.julialang.org/t/how-to-get-within-r2-and-t-value-from-fixedeffectmodels/83055>\
**Category:** General Usage\
**Created:** [June 20, 2022, 10:04am UTC](https://discourse.julialang.org/t/how-to-get-within-r2-and-t-value-from-fixedeffectmodels/83055 "2022-06-20T10:04:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raymond](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raymond/32/36557_2.png) [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Post date:** [June 20, 2022, 10:04am UTC](https://discourse.julialang.org/t/how-to-get-within-r2-and-t-value-from-fixedeffectmodels/83055/1 "2022-06-20T10:04:40Z")

</div>

Dear all,

how to get within\_r2 and t value?

```julia
julia> using DataFrames, DataFramesMeta, FixedEffectModels

julia> df = dataset("plm", "GrunFeld");

julia> fe1 = reg(df, @formula(Inv ~ Value + Capital + fe(Firm)))
                       Fixed Effect Model                       
=================================================================
Number of obs: 200 Degrees of freedom: 12
R2: 0.944 R2 Adjusted: 0.941
F-Stat: 309.014 p-value: 0.000
R2 within: 0.767 Iterations: 1
=================================================================
Inv | Estimate Std.Error t value Pr(>|t|) Lower 95% Upper 95%
-----------------------------------------------------------------
Value | 0.110124 0.0118567 9.2879 0.000 0.0867345 0.133513
Capital | 0.310065 0.0173545 17.8666 0.000 0.275831 0.3443
=================================================================

```
