Re: [R] can not execute two functions - env() and profile()

2010-04-14 Thread pnouvellet

Hi,
I had the same problem on windows with same R version...
With the package lme4a (from R-forge), I can use the env() function.

However, I am still unable to use the profile function (in the aim of
establishing confidence interval for the std devaition of random effect). 

any help will be greatly appreciated!!

pierre
-- 
View this message in context: 
http://n4.nabble.com/can-not-execute-two-functions-env-and-profile-tp1836709p1839737.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] can not execute two functions - env() and profile()

2010-04-12 Thread Mao Jianfeng
Dear R-helpers

I want to express my respect and thankfulness to all of you.

When I tried to follow a draft book on lme4 authored by Prof. Doug.
Bates (http://lme4.r-forge.r-project.org/book/) to learn how to fit
mixed-effects model, I found I can not execute two functions which
listed in the book chapters.


For example, in the Chapter 1 of that book there are two lines of R
code, which are:

env(fm1ML)$Lambda # page 14

pr1 - profile(fm1ML) # page 16

I got

there is no env function in R and

error: UseMethod(profile) : profile can not find the available
methods for the object mer

I need to know how can I execute these functions properly in my PC.
Thanks for your helps and advice in advance.

Following is my system info.

 R.version
   _
platform   i386-pc-mingw32
arch   i386
os mingw32
system i386, mingw32
status
major  2
minor  10.1
year   2009
month  12
day14
svn rev50720
language   R
version.string R version 2.10.1 (2009-12-14)


Jian-Feng, Mao
the Institute of Botany, CAS
Beijing, China

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.