avsha38 wrote:> Hi,
> when i run the following code i get this massege:
>
> "The instruction at 0x######## reference memory at
>
> 0x#######, the memory cannot be "read".
> and then i have to close R.
>
> what is the problem and how can i solve it?
>
The problem is a bug in the underlying C (or other) code. To solve it,
put together a minimal example that produces it reliably. If it
requires the frailtypack package to work, then send your example to the
maintainer of that package. If the minimal example uses only standard R
packages, then submit an R bug report about it.
There's no point reporting it unless someone can reproduce it, and
people might not follow up if the example is too complicated, so you
should make an effort to simplify as much as you can before reporting.
Duncan Murdoch> thanks in advance
> Avi
>
> my code
>
> # frailtypack
> library(frailtypack)
> cgd.ag <- read.csv("C:/rfiles/RE/cgd.csv")
> cgd.nfm <-frailtyPenal(Surv(TStart, TStop,
> Status)~cluster(Center)+subcluster(ID)
> Treatment,data=cgd.ag,Frailty=TRUE,n.knots=8,kappa1=50000,
> cross.validation=TRUE,recurrentAG=TRUE)
>
>
>