The p-values are provided by PDL::GSL::CDF, which depends on the GSL
library. You need to install the GSL library first then go to
PDL-Stats-*/GSL/ source dir to install PDL::GSL::CDF.

Maggie


On Wed, Sep 30, 2009 at 6:07 PM, philge philip <[email protected]> wrote:

> hi
>
> i made a mistake in adding "use PDL::MatrixOps qw( inv );" previosuly. it
> run this time.
>
>
> BUT when i run the script, I GET THIS OUTPUT
>
> D0      13.4602333401851
> Dm      0
> Dm_chisq        13.4602333401851
> Dm_df   1
> b       [ 74.586363 -410.78138]
> b_chisq [ 13.460233  13.065797]
> iter    144
> y_pred  [3.9802944e-179 9.8256427e-147 2.4255305e-114 5.9875962e-82
> 1.4780811e-49 3.6487495e-17 1 1 1 1]
>
> i find dm_p and b_p are missing. why its so?
>
>
> i have run with changes you told. and i get following test output.
>
> [r...@penguin PDL-Stats-0.2.5]# make test
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
> ****
> no GSL lib, skip PDL::Stats::Distr
> ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
> ****
> no GSL lib, skip PDL::GSL::CDF
> ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/stats_basic.....ok
>
> t/stats_glm.......ok
>
> t/stats_kmeans....ok
>
> All tests successful.
> Files=3, Tests=95,  0 wallclock secs ( 0.44 cusr +  0.03 csys =  0.47 CPU)
> make[1]: Entering directory `/root/..cpan/build/PDL-Stats-0.2.5/Basic'
> No tests defined for PDL::Stats::Basic extension.
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2..5/Basic'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
> ****
> no GSL lib, skip PDL::Stats::Distr
> ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> No tests defined for PDL::Stats::GLM extension.
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> No tests defined for PDL::Stats::Kmeans extension.
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
> ****
> no GSL lib, skip PDL::GSL::CDF
> ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
>
> [r...@penguin PDL-Stats-0.2.5]# make install
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
> ****
> no GSL lib, skip PDL::Stats::Distr
> ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
> ****
> no GSL lib, skip PDL::GSL::CDF
> ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
> Files found in blib/arch: installing files in blib/lib into architecture
> dependent library tree
> Writing
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/PDL/Stats/.packlist
> Appending installation info to
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
>
> philge
>
> ------------------------------
> *From:* Maggie X <[email protected]>
> *To:* philge philip <[email protected]>; perldl <[email protected]>
> *Sent:* Wednesday, 30 September, 2009 11:27:22 PM
>
> *Subject:* Re: [Perldl] error with PDL::Stats
>
> Did you add "use PDL::MatrixOps qw( inv );" at the top of LM.pm? inv is
> from PDL::MatrixOps, you need to import it into LM.pm before calling it
> directly.
>
> Maggie
>
> On Sep 30, 2009 5:16 PM, "philge philip" <[email protected]> wrote:
>
> hi
> i have run with changes you told. and i get following test output.
>
> [r...@penguin PDL-Stats-0.2.5]# make test
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
>
>  **** no GSL lib, skip PDL::Stats::Distr ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
>
> **** no GSL lib, skip PDL::GSL::CDF ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
>
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/a...
> t/stats_glm.......ok 1/33Undefined subroutine &PDL::Fit::LM::inv called at
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/PDL/Fit/LM.pm
> line 155, <DATA> line 387..
>
>  # Looks like you planned 33 tests but only ran 19. # Looks like your test
> died just after 19. t/sta...
> [r...@penguin PDL-Stats-0.2.5]# make install
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
>
> **** no GSL lib, skip PDL::Stats::Distr ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
> make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'
>
> **** no GSL lib, skip PDL::GSL::CDF ****
> make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0..2.5/GSL'
> Files found in blib/arch: installing files in blib/lib into architecture
> dependent library tree
> Installing /usr/share/man/man3/PDL::Stats::Basic.3pm
> Installing /usr/share/man/man3/PDL::Stats::Kmeans.3pm
> Installing /usr/share/man/man3/PDL::Stats::GLM.3pm
> Writing
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/PDL/Stats/.packlist
> Appending installation info to
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
>
>
> AND i tried to run the perl program with sample data. GOT FOLLOWING OUTPUT
>
> Undefined subroutine &PDL::Fit::LM::inv called at
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/PDL/Fit/LM.pm
> line 155, <DATA> line 387.
>
> philge
>
>
> ------------------------------
> *From:* Maggie Xiong <[email protected]>
> *To:* philge philip <[email protected]>
> *Cc:* pdl <[email protected]>
> *Sent:* Wednesday, 30 September, 2009 4:07:09 PM
> *Subject:* Re: [Perldl] error with PDL::Stats
>
> The same test passes fine on my Ubuntu 8.04 + Perl 5.8.8 + PDL 2.4.4_x. The
> error is produced by PD...
>
> ------------------------------
> Keep up with people you care about with Yahoo! India Mail. Learn 
> how<http://in.rd.yahoo.com/tagline_galaxy_1/*http://in.overview.mail.yahoo.com/connectmore>
> .
>
>
> ------------------------------
> Keep up with people you care about with Yahoo! India Mail. Learn 
> how<http://in.rd.yahoo.com/tagline_galaxy_1/*http://in.overview.mail.yahoo.com/connectmore>
> .
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to