[R] Constructing mgcv tprs basis functions

2012-08-15 Thread Casey Olives
Hello, I am trying to generate the design matrix associated with the tprs smooth in R mgcv from scratch. I want to construct the matrix X = [UkDkZk | T] which is produced from the function smoothCon following the steps provided in Simon Wood's 2003 Thin Plate Regression Splines paper (Appendix

Re: [R] mgcv bam() with grouped binomial data

2012-02-01 Thread Casey Olives
seeing the data Thanks again Casey -Original Message- From: Simon Wood [mailto:s.w...@bath.ac.uk] Sent: Tuesday, January 31, 2012 2:17 AM To: Casey Olives Cc: 'r-help@r-project.org' Subject: Re: [R] mgcv bam() with grouped binomial data upgrade to the current mgcv version (see last

[R] mgcv bam() with grouped binomial data

2012-01-30 Thread Casey Olives
Hello, I'm trying to use the bam() function in the R mgcv package for a large set of grouped binary data. However, I have found that this function does not take data in the format of cbind(numerator, denominator) on the left hand side of the formula. As an example, consider the following dat1