im trying build website , ive ran problem. got 4 pictures , whenever want click on picture, want show text. wont show, did link console log , shows working. can me this? thanks in advance! css <img class ="porfoto" title="tekstroy" id ="roy" src="img/roy.png"> <img class ="porfoto" title="tekstkinmen" id ="kinmen" src="img/kinmen.png"> <img class ="porfoto" title="tekstboris" id ="boris" src="img/boris.png"> <img class ="porfoto" title="tekstelse" id ="else" src="img/else.png"> <p id="tekstroy">hallo </p> <p id="tekstkinmen">hallo2<p> <p id="tekstboris">hallo3</p> <p id="tekstelse">hallo4</p> js $("#tekstroy").hide(); $("#tekstkinmen").hide(); $("#tekstboris").hi...
i want plot loglikelihood function of series of independent bernoulli distributed random variables y parameter p being function (the logistic function) of feature x. logistic function has parameter b. parameter want estimate. want plot loglikelihood function of b. want in r using ggplot2, because want become better in those. my creation of loglikelihood function can , should done better, not point here. problem plotted loglikelihood constant on interval (-5,5). seems wrong. especially, because when call function arbitrary b in interval returns different value. why happen? thank you. library(ggplot2) set.seed(123) # parameters n=100 mu=0 s=2 b<-0.2 # functions logit <- function(x,b){1/(1+exp(-b*x))} # simulation of data x<-rnorm(n,mu,s) y_prob<-logit(x,b) y<-rbinom(n,1,y_prob) df<-data.frame(x,y) # loglikelihood function loglikelihood<-function(b,df){ prd<-1 (i in 1:nrow(df)){ events<-logit(df$x[i],b) nonevents<-1-events prd...
i have class : <?php class connection { public $db; public function __construct() { $this->db = new mysqli('localhost', 'root', '', ''); if($this->db->connect_errno > 0){ die('error ' . $this->db->connect_error); } $this->db->set_charset("utf8"); } } class masssave extends connection { public $sql; public function insert_all { // works if ( $sql = $this->db->query("insert $db_name ($str_db_value) values ($str_form_value_found) ")) { return true; } else { return false; } } } ?> in masssave class seted $sql public , want use class in pages , register page $save = new masssave; if ( $save->sql = true ) { echo 'ok'; } else { echo 'failed'; } but upper code not working , echo 'ok' query failed , i use if ( $save...
Comments
Post a Comment