The examples on the help page for the function "simfun" in the
TeachingDemos package have some examples of simulating data from
nested designs with some terms fixed and some random.  I don't think
any of the examples match your conditions exactly, but could be
modified to do so (changing a random effect to a fixed effect just
means using a specified mean for each level rather than choosing a
random value for each level).

On Sat, Jun 6, 2015 at 9:04 PM, Jim Silverton <jim.silver...@gmail.com> wrote:
> Hi,
> I am trying to 'create' a nested design with A, B nested in A and C nested
> in B. C is random and the others are fixed.
> Does anyone have any idea how to do this?
> I would also like to try the other nested designs with all random  and all
> effects fixed.
>
> --
> Thanks,
> Jim.
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



-- 
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to