[R] Gam (mgcv) function

2009-08-19 Thread Cetinyürek Aysun
Dear all, I have obtained a model for my data set using gam function in mgcv library. The model is as follows: Family: Binomial Link function : Logit RU ~ s(time, by = Status, bs = ps) + Region*Status+ Gender*Status I have obtained the results. While presenting the results for Region

[R] Polygon function

2009-08-18 Thread Cetinyürek Aysun
Dear all, I would like to plot credible interval for a function estimate in R. I would like to plot the credible intervals as shaded region using polygon function. Does anyone ever used that? I tried several times but I could not obtain the right figure. xis=sort(xi,decreasing=TRUE) plot(xi,fm)

[R] Generation from COX PH with gamma frailty

2009-06-16 Thread Cetinyürek Aysun
Hello, I want to generate data set from Cox PH model with gamma frailty effects. theta(parameter for frailty distribution)=2 beta=1.5 n=300 cluster size=30 number of clusters=10 I think I should first generate u from Gamma(Theta,theta) and then using this theta I could not decide how I should

[R] How to see the content of geepack package

2009-04-24 Thread Cetinyürek Aysun
Dear list members, I need to see the content of the functions in package geepack. It uses some C functions in the computation they are not available in the package directory. How can I see the content of C functions? Kind Regards, Thank you, Aysun Cetinyurek

[R] How to save the variables in R to a file

2009-04-06 Thread Cetinyürek Aysun
Dear list members, I have f.mean matrix of size 500 X 83 in R, and I want to save this into a file. I used the command save(f.mean.Rdata,file=D:/Users/Ays/Documents/Results) it saves but when I open the file in notepad it is just some characters meaningless. Thank you in advance, Kind Regards,

[R] C function calling in R

2009-02-20 Thread Cetinyürek Aysun
Dear all, I have a problem in calling my C code from R. If I do not need to use #includeR.h, the codes work properly. But when I need to use it, my codes produce an error as: logpostCLM.cpp:7:15: error: R.h: No such file or directory logpostCLM.cpp:8:24: error: Rinternals.h: No such file or